Explanation of the meaning of Drwxr-xr-x:
LS-Al Gets the following list: Drwxr-xr-x4Oracle DBA4096May - One: -ORALOG1DRWXR-X--- -Root root4096May - -:WuyiRoot Explanation: D: The first bit represents the file type, D is the directory file, L is the link file ,-is the ordinary file, p is the pipe rwx: 2nd-The 4-bit represents the owner-owned permissions for this file. R is read, W is write, X is execute R-X: 5th-The 7-bit representation and this file belongs to the owner of the same group as the user has permissions R-X: 8th-10-bit represents the permissions that other users have, such as: Drwxr-xr-x4Oracle DBA4096May - One: -ORALOG1 indicates that Oralog1 is a directory, Oracle has read and write execution permissions, and the user in the same DBA group as Oracle has read-only and execute permissions, leaving other users with read-only and Execute permissions!
Ls-al the meaning of each paragraph:
1th field: file attribute field file attribute field Total 10 letters, the first letter indicates the file type, if the letter is a minus "-", then the file is a normal file. The letter "D" means that the file is a directory, the letter "D", is an abbreviation for the Dirtectory (directory). Please note that a directory or a folder is a special file that holds information about other files and folders. 2nd field file hard link number or directory subdirectory number 3rd field: File owner 4th field: File Owner's Group 5th field: File File size in bytes 6th field: File Creation month 7th field: File creation date 8th field: File creation time 9th field: filename (if it is a symbolic link, there will be a "-a" arrow symbol, followed by a file it points to)
Rwxrwxrwx=777 's explanation:
The operation of the alphabet is rather bloated and can be simplified as a number, such as super-privilege 777. is actually the result of the addition of numbers.
R:read is read permission- -the number 4 means that W:write is Write permission ------ The number 1 means read, write, run three permissions can be expressed in numbers, that is, r=4, W =2, x=1. Therefore,-rw-r--r--is represented by a number as 644. There will be a total of 10 "-", the first represents a file type, such as the file is a file (- representation), folder (d), the connection file (L), followed by 9 according to three one component. such as: rwxrwx770 indicates that this file (folder) has both read and write and execute permissions for the same group of users, and no other user groups have any permissions. That is, the previous three represents the owner permission, the middle three represents the same group of user rights, and the last group represents the other user rights. Note: The above other users, not including root this super user.
Now, this picture is going to make sense.
[Email protected]_0_11_centos/]# LS-Ltotal thelrwxrwxrwx. 1Root root7Apr + .Bin-usr/Bindr-xr-xr-x.4Root root4096May - -: -BOOTDRWXR-xr-x2Root root4096Apr + .DATADRWXR-xr-x +Root root theMay - -: -DEVDRWXR-xr-x. theRoot root12288May - A: AboutETCDRWXR-xr-x.4Root root4096May - A: tohomelrwxrwxrwx. 1Root root7Apr + .Usr/, Libliblrwxrwxrwx. 1Root root9Apr + .LIB64-usr/lib64drwx------.2Root root16384Apr + .lost+FOUNDDRWXR-xr-x.2Root root4096The A -MEDIADRWXR-xr-x.2Root root4096The A -MNTDRWXR-xr-x.3Root root4096Apr + .OPTDR-xr-xr-x theRoot root0May - -: -PROCDR-xr-x---.6Root root4096May - -: +ROOTDRWXR-xr-x -Root root840May - +: therunlrwxrwxrwx. 1Root root8Apr + .Sbin-usr/SBINDRWXR-xr-x.2Root root4096The A -SRVDR-xr-xr-x -Root root0May - -: -SYSDRWXRWXRWT. 8Root root4096May - +: -TMPDRWXR-xr-x. -Root root4096Apr + .USRDRWXR-xr-x. +Root root4096May - -: - var
Detailed description of Linux file properties