Linux ls -l command shows the meaning of the results of each column

 

 Picture Reprinted from: https://blog.csdn.net/zhuoya_/article/details/77418413

Simple explain:

1, the first column of the color box: file type column, several common types described herein is simple, d represents a directory file, e.g. dr-xr-xr-x; - represents a regular file, e.g. -rwxrwxr-x.

2, the second thirty-four color box: file permissions columns because linux is a multi-user multi-tasking system, each user may be different permissions on the same file, so the file permissions setting is very important.

3, fifth column color box: the number of hard links directory or subdirectory.

If a file is not a directory then this field indicates: This file has hard links, namely the total number of file filename.

If a directory is: the second field indicates the number of subdirectories contained in the directory, create an empty directory, the directory is the second field 2 indicates that there are two subdirectories under the directory.

Why the new directory will be two subdirectories below it?

Since each directory has a subdirectory pointing to itself. "" It points to the parent directory and subdirectory "..", the two default subdirectory is hidden. We can see with ls -a "." And ".."

Every time a new subdirectory in the directory, the directory is the value of the second field increased 1, but a new regular file of the field value does not increase.

The name of the owner of the file belongs: 4, sixth column color box

5, the seventh row of colored boxes: Owned by group name

6, the eighth column color box: File Size

7, the ninth column color box: file was last modified

8, the tenth row of colored boxes: the file name

Guess you like

Origin www.cnblogs.com/candii/p/11823862.html