File types, properties and permissions in the CentOS 6.6 system

Source: Internet
Author: User

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

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.