only create their own files, as well as delete their own files. Other people's you are not touched.Nonsense not much to say,!Set the directory to sticky permissions, so the security of the directory is higher.We try to delete files, files I have set read and write execution permissions, directories also have execute permissions, we look at the effect of deleting files.You can see that the deletion is not allowed. This greatly improves the security of
Tags: find directory under DirectoryFind a way to have those directories under the directory内容:[[emailprotected] kang]# lltotal 16-rw-r--r-- 1 root root 0 May 6 21:21 d.txtdrwxr-xr-x 2 root root 4096 May 6 21:14 kang-rw-r--r-- 1 root root 0 May 5 18:55 kang.txtdrwxr-xr-x 2 root root 4096 May 5 23:40 nginx-rw-r--r-- 1 root root 5 May 5 23:40 test.sh-rw-r--r-- 1 root root 38 May 5 23:27 test.txt方法一:通常方法ls -l | grep ‘^d‘ #正则表达式^...
Tags: show game find roo print directory bin include lock1.Linux find large files or directories 1.1 files that exceed a specified size in the specified directory, only show path + file namefind ./-type f-size +20M. /elasticsearch-6.2. 4 . rpm. /shakespeare_6. 0. JSON1.2 Search for files that exceed a specified size in the specified directory (file size only, filename)Method 1Find Xargs ls awk ' {print $5,$9} ' 28M. /elasticsearch-6.2. 4 . rpm25m. /sh
Filesystem Hierarchy Standard (FHS): The focus is on standardizing what data should be placed in each particular directory. The advantage of this is that the Linux operating system is able to develop the unique style that developers want under the existing landscape (the directory architecture remains unchanged)./binThe system has a lot of directories to place execution files, but/bin is special, because/bin is placed in single-player maintenance mode
UNIX advanced environment programming (5) Files And Directories, unixdirectories
1 File Times
Each file maintains three time fields, each representing a different time field. See the following table:
Field description:
St_mtim (the modification time) records the last time the file content was modified.
St_ctim (the changed-status time) records the last time the I-node of the file was modified, such as modifying the File Permission bit and modifyin
PHP get directory All files with all directories saved to the array program This is a use of the Glob function to save all files and folders in the specified directory to the data, and then we then use a foreach again to determine the relevant data in the same OH.
PHP Tutorial Get directory All files with all directories saved to array programThis is a use of the Glob function to save the specified director
PHP deletes all directories and files in the specified directory,
This example describes how PHP deletes all directories and files in the specified directory. Share to everyone for your reference. The implementation method is as follows:
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/960706.html www.bkjia.com true http://www.bkjia.com/PHPjc/960706.html techarticl
PHP rmdir () functionRmdir― Delete Empty DirectoryGrammar:BOOL RmDir (String $dirname [, Resource $context])An attempt was made to delete the directory specified by DirName. The directory must be empty and have the appropriate permissions. Failure results in a e_warning level error.Parameters:1.dirname: The path to the directory.2.context: Added support for context in PHP 5.0.0.PHP rmdir () Delete a non-empty directoryAs mentioned above, the RmDir () function can only delete empty
Familiar with the copy command, the next related command is the MV command. When you want to move a file from one location to another and do not want to copy it, the MV command is the first choice to complete the task.Initial knowledge of MV commandThe MV command is a command similar to CP, but it does not create replicas/replicas of files or directories. No matter what version of the Linux system you are using, the MV is installed on your Linux syste
First, about/ETC/INIT.DIf you have used a Linux system, you must have heard of the INIT.D directory. What the hell is this directory for? It's only done one thing in the end, but it's very important that it's done for the whole system. The INIT.D directory contains many system startup and stop scripts for various services. It controls all kinds of transactions from Acpid to X11-common. Of course, INIT.D is far from being so simple. (Translator Note: Acpid is a new power management standard for L
look at the/etc directory, you will find many directories that exist in rc#.d form (where # represents a specified initialization level, and the range is 0~6). Under these directories, there are many scripts that control the process. These scripts either start with "K" or start with "S". A script starting with K runs before a script that begins with S. Where these scripts are placed, will determine when th
, and can be used in almost any modern operating system.When you look at the/etc directory, you will find many directories that exist in rc#.d form (where # represents a specified initialization level, and the range is 0~6). Under these directories, there are many scripts that control the process. These scripts either start with "K" or start with "S". A script starting with K runs before a script that begin
Getting Started with Linux to master one: file directories, disks, and some commandstags (space delimited): Linux
Getting Started with Linux to master a file directory disk and some commands
1 Disk Partitioning
2 File systems and directories
3SSH
4 basic commands
5 File View Commands
1, Disk partitioning2, File systems and directoriesCommon
This article describes how to use a Web server to list the specified directories and files and authorize access to the specified directory.
Listing directories using Nginx
Prepare for work-install Nginx and create some directories and files:
Copy Code code as follows:
$ sudo apt-get install Nginx
$ cd/usr/share/nginx
$ mkdir Web
$ sudo mkdi
and TMP file storage space
$ find $LOGDIR-type d-mtime +0-exec compress-r {} \;$ find $LOGDIR-type d-mtime +5-exec rm-f {} \;
The first command finds all directories in the $LOGDIR directory that contain data modified within 24 hours (-mtime +0) (-type D), compressing them (compress -r {}) to conserve disk space. If these directories exceed one work week (-mtime +5) , the second
, external device, network status, because the data are stored in memory, so do not occupy disk space, the more important directory has/proc/cpuinfo,/proc/interrupts,/PROC/DMA,/proc /ioports,/proc/net/* and so on.
/root: Home directory for system administrator root.
/sbin:/usr/sbin:/usr/local/sbin: Place executable commands that the system administrator uses, such as Fdisk, Shutdown, Mount, and so on. Unlike/bin, these directories are commands for
PHP Renaming directoriesUse the PHP rename () function to rename the directory.Returns true if the rename () function executes successfully, otherwise false.Copy CodeView the display of the PHP rename directory in the browser. As shown in the following:650) this.width=650; "src=" Http://www.baike369.com/content/images/201406/4908.gif "width=" 499 "height=" 208 "alt=" View the PHP rename directory display in the browser "style=" Border:none; "/>
PHP Mobile DirectoryCopy CodeThe above code c
WriteEfficiency is higher than write, faster, and a small number of writes can be used writeExample:>>> L = [' one\n ', ' two\n ', ' three\n ']>>> f1 = open (' Test.log ', ' a ') >>> F1.writelines (L) > >> F1.close ()Fileobject.seek (offset, option)-When =o, indicates that the file pointer is pointing from the file header to the "offset" byte.-option = 1 o'clock, which indicates that the file pointer points to the current position of the file and moves the "offset" byte backwards.-option = 2 o'
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.