编程知识 cdmana.com

A Linux command every day -- stat view file properties

stay Linux in , Files have three time attributes . Namely ATime,MTime,CTime.

  • ATime: When a file is read or executed ,Atime It will update .
  • MTime: When the contents of the file are changed , be MTime It will update .
  • CTIME: When files are moved 、 Owner and group changed 、 Permission changed 、 The content of the file has been changed , be CTime It will update .
  • ls -l Command to display file information , The last time is Mtime.
stat The command can be used to view information about the file and the three time attributes , You can also view information about the file system . Here is just about file attribute query . Specific examples are as follows :
image
image
image

版权声明
本文为[Ah Liao]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224120110869o.html

Scroll to Top