Newbie School: Introduction to file attributes in Linux

Source: Internet
Author: User
Article Title: newbie School: Introduction to file attributes in Linux. Linux is a technology channel of the IT lab in China. It contains some basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. The files listed by the "ls-al" command are as follows: (from left to right: for example: -rwxrwxrwx 1 root 6394 02-15 19:45 shs

-Rwxrwxrwx --- indicates the object attributes, where r indicates the readable attributes, w-writeable attributes, x-executable attributes, and from left to right: the first group rwx represents the owner's permissions, the second group rwx represents the permissions of the user group described in the file, and the third group rwx represents other user permissions. Note the "x" permission. If the attribute of a directory is drwxr -- r --, Can non-owner users access this directory? The answer is no. Because the relationship between "x" and the directory is very important, if the directory cannot execute any command, then the natural directory cannot be accessed. Therefore, if you want to open a directory to others, assign the corresponding "x" attribute to this person.

Arabic numerals 1-Number of connections, indicating the node occupied by the connection (I-node );

Root --- file owner );

Root --- user group to which the file belongs );

6394 --- file size;

02-15 --- date;

19: 45 --- time;

Sha --- file name

Note: The first "-" indicates that the file is a "file, directory, or connection file"

[D] -- indicates a file directory;

[-] -- Indicates a file;

[L] -- link file );

[B] -- indicates the interface device that can be stored in the device file;

[C] -- indicates a serial port device in a device file, such as a mouse or keyboard.

These are the key points of understanding the basic attributes of a file. You need to have a deep understanding of the meaning of each character, especially the meaning of the permissions in the first section.
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.