Knowledge of Linux file attributes

write picture description here 
Text explanation:

  1. inode (index node index node), which is the unique identifier of a file or directory on disk. When linux reads a file, it first needs to read this inode (equivalent to the directory of a book).
  2. The first character, representing the file type (- normal file, d directory). 
    The first 2-10 characters such as rw-r-r- are file permissions (r,w,x,-), r is read, w is write, x is execute, - is no. 
    The 11th character '.', SELINUX related.
  3. The number of hard links to the file. The number of hard links to the file is another entry point to the file.
  4. The owner or user corresponding to the file.
  5. The corresponding group or user group of the file.
  6. file size.
  7. The time the file was changed.
  8. The time the file was changed.
  9. The time the file was changed.
  10. The name of the file or directory.

The first column of inode knowledge points:

inode与block

The second column of file types and file permissions knowledge points:

File Types in Linux System  
Permissions for Common Files in Linux Permissions for  
Linux Directories  
How to Delete Files in Linux

The third column of file hard link number knowledge points:

hard link  
soft link  
directory link  
link summary

The fourth and fifth columns of file user and user group knowledge points:

http://blog.csdn.net/codetz/article/details/52431215

Knowledge points about the time when the files in columns 7, 8, and 9 were changed:

The stat command can view the detailed information of the file. 
write picture description here

Time of the file: 
Access: access time, -atime. 
Modify: Modification time, content changes, -mtime. 
Change: Change time, including Modify, permissions, groups, and user groups will also change if they change, -ctime.

Standard display time

ll --time-style=long-iso

Reprinted to https://blog.csdn.net/codetz/article/details/52399883

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325806141&siteId=291194637