Linux Command LS-Al Parsing

Source: Internet
Author: User

Ls indicates "list", which is similar to the Dir function of earlier DOS commands. The-Al parameter indicates that all files are listed, including hidden files, which are files whose first character is. As shown above, when logging on to Linux as a root for the first time, if you enter the command, the above content should first parse the meaning of the above seven fields,: 1. the first column is the attributes of the file: # When the first attribute indicates the file, "directory, file, or linked file": [d], it is the directory 【-], if it is a file [L], it is a link file [B], it is the interface device [c] that can be stored in the device file ], indicates the serial port device in the device file, such as the keyboard and mouse. # In the following attributes, the three are in a group and all are "rwx" parameter combinations.
R indicates readable read, W indicates writable write, and X indicates executable excute. Each permission is represented by a number: R 4; W 2; x 1. the first group is "permissions of the owner", the second group is "permissions of the same user group", and the third group is "permissions of other non-user groups ". 2. The second column indicates the node occupied by the connection (I-node) 3. The third column indicates the "owner" of the file or directory. 4. The fourth column indicates the owner's user group. 5. The fifth column indicates the file size. 6. The sixth column indicates the file creation date or the latest one. column 7 and 7 are the file names of this file: if the file name is preceded. it indicates that the object is hidden. If you only input the files added before ls, they will not be displayed. Ls-AL: All files are displayed.

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.