stat file three time points

Linux file 3 time points (access time, modify time, change time)

 access time : Indicates the time when the file was last accessed (just accessed, not changed).

Note: As for why the problem as shown in the figure appears, you can study it yourself, but the access time will change if you do.

 

 modify time: Indicates the time when the file was last modified.

 

Change time: Indicates the last time the file attributes were changed, including permissions, sizes, attributes, etc.

 

There is no doubt that the file attribute changes and the change time changes. There are many file attributes, which can be summarized by themselves.

 

Summarize:

         1) When only reading or accessing the file, the access time changes, while the modify time, the change time does not change.

         2) When modifying the content of the file, the modify time and change time will change, but the access time will  not necessarily change.

         3) When the file permission attribute is modified, the change time will change, but the access time and the modify time will not change.

 

Guess you like

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