Introduction to file attributes in linux

Source: Internet
Author: User
Introduction to file attributes in linux-general Linux technology-Linux technology and application information. The following is a detailed description. Open source technology exchange alliance was formally established:
Open-source group: 60678254 (originally: The sky outside the window)
Group 2: 47253877
Group 3: 61427202
Four groups: 61427904 (formerly: freesoftwaver)
Group 5: 63352695
Group 6: 60472504 (formerly: java + linux)

Thank you for choosing linux.

When using the shell command ls, we will find many attributes and labels. Here we will introduce them:
Ls-al
We will get a lot of row files like: drwx rwx 1 root 293 may 10 name
The corresponding attribute is: Archive property connection number owner all group capacity last Edit Time file name
Archive attributes: Part 1 d
If it is [d], it is a directory, such as the 11th rows in the Table above;
If it is [-], it is an archive, for example, the 5th rows in the Table above;
If it is [l], the link file is used );
If it is [B], it indicates the interface device in the device file that can be stored;
If it is [c], it indicates the serial port device in the device file, such as the keyboard and mouse.
-R indicates read Attribute-w indicates write attribute x indicates execution attribute
The first part is the attributes of the archive owner.
Part 2: Attributes of all groups in the archive Part 3: attributes used by others


When we use the chmod command, we will have a lot of numeric attributes. Maybe new users will be bored with calculating this thing. What is it about 755.
It's actually very simple:
R: 4
W: 2
X: 1
-Rwx-rx
It's easy.

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.