File and Directory Properties

Source: Internet
Author: User

1. displaying file and directory details

[Email protected] ~]# ls-l

Total Dosage 52

Drwxr-xr-x 2 root root 4096 September 20 19:23 111

-RW-------. 1 root root 1460 September 9 02:39 anaconda-ks.cfg

-rw-r--r--. 1 root root 29745 September 9 02:39 Install.log

-rw-r--r--. 1 root root 6995 September 9 02:37 Install.log.syslog


-RW-------. Altogether 11 people

First column: 1th bit, what type of file is represented

-Normal file

Catalog D

C-Character device (mouse, keyboard)

B-Block devices (disk, disc, U-disk)

Soft link (similar to Windows shortcut, just record the path of a file)

s socket file (for interprocess communication)

P Pipe file (also used for communication, the output of one command as input to another command)

Then the next 9 bits, which represent the file's attribute permissions

Divided into three segments:

First paragraph: Indicates the owning master

Second paragraph: Indicates the owning group

Third paragraph: indicates other

R Readable w writable x executable-No

The last side. Related to SELinux, understand.


Second column: Indicates how many files and directories use the same inode for this file or directory


Column three: Owning Master


Fourth column: Owning group


Fifth Column: Size

humanized Display Size

[Email protected] ~]# LS-LH

Total dosage 52K

Drwxr-xr-x 2 root root 4.0K September 20 19:23 111

-RW-------. 1 root root 1.5K September 9 02:39 anaconda-ks.cfg

-rw-r--r--. 1 root root 30K September 9 02:39 Install.log

-rw-r--r--. 1 root root 6.9K September 9 02:37 Install.log.syslog


第六、七、八 column: Time to create or change


Nineth column: File name or directory name


This article from the "Linux" blog, reproduced please contact the author!

File and Directory Properties

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.