One, the file type in the system.
Type:
① ' d ' represents a directory file,
Dr-xr-xr-x. 5 root root 1024 February 00:15 boot
The ' d ' in ' dr-xr-xr-x ' means that this file is a directory file.
② '-' stands for ordinary files,
-rwxr-xr-x. 1 root root 23408 October 12:45 Arch
The '-' in '-rwxr-xr-x ' means that the file is a normal file.
③ ' B ' represents a block device file,
BRW-RW----. 1 root disk 7, 0 February 04:23 loop0
' B ' in the ' brw-rw----. ' means that this file is a block device file.
④ ' l ' stands for linked files,
lrwxrwxrwx. 1 root root 4 February 00:13 awk--gawk
The ' l ' in ' lrwxrwxrwx ' means that this file is a linked file.
⑤ ' C ' stands for character file,
CRW-RW----. 1 root video 10, 175 February 04:23 Agpgart
' C ' in the ' crw-rw----. ' means that this file is a character file.
⑥ ' s ' represents a socket file,
srw-rw-rw-. 1 root root 0 February 04:23 rpcbind.sock
The ' s ' in ' srw-rw-rw-' means that this file is a socket file.
Ii. attributes and permissions of a file
Example:
[Email protected]/]# ls-l dev-ddrwxr-xr-x. Root root 3560 February 04:23 Dev
In addition to ' dev ' in this message, other information is called the attribute of the file, except that it represents the file name. ' R ' stands for read, ' W ' stands for Modification (write), ' x ' represents execution.
where ' drwxr-xr-x ' information is divided into 10-character segments,
The ① character segment, above, says ' d ' represents the type of this file, which is a directory file.
The ②-④ character segment, that is, ' rwx ' represents the permissions that the owner of the user has on the file.
The ⑤-⑦ character segment, or ' R-x ', represents the permissions that the owning user group has on the file.
The ⑧-⑩ character segment, which is ' r-x ', represents the permissions that other users (other) have on the file.
Not to be continued ...
This article is from the "Mylinux" blog, make sure to keep this source http://mylinuxlife.blog.51cto.com/4706737/1615816
File types, properties and permissions in the CentOS 6.6 system