How to get file information inherent to time: such as last modification time, recent access time and so on.
Also I would like to know if it is possible to check all the modification dates of a file or the times the file was modified and when. Thanks.
Asked
Active
Viewed 5,949 times
3
Pleo
- 31
- 1
- 3
-
You can follow this [link](http://www.cyberciti.biz/faq/howto-finding-files-by-date/) – Jul 18 '14 at 07:47
1 Answers
2
Most Unix/Linux operating systems know 3 different meta informations for a file or a folder: atime, mtime and ctime.
- atime: access time: means when the file/folder was last accessed.
- mtime: modify time: defines when the content of the file was last changed. Will be set when the file was created and evertime when the content changes. For a folder, mtime changes when a file is created or deleted inside of it.
- ctime: change time (not create time!): Changes when the content of the file changes (like mtime) and also when metadata changes. That means when the owner or the permissions change.
chaos
- 27,106
- 12
- 74
- 77
-
1But ctime is apparently not easy to find out, depending on the filesystem: http://unix.stackexchange.com/questions/20460/how-do-i-do-a-ls-and-then-sort-the-results-by-date-created – noleti Jul 18 '14 at 07:26
-