You need to check what modification-, change-, and access time a file has, how can you check this? Discuss the difference between them, and what they actually mean. What other meta-information can be found about a file?
You need to check what modification-, change-, and access time a file has, how can you check this? Discuss the difference between them, and what they actually mean. What other meta-information can be found about a file?
1) Using stat command we can check the information like Modification-, Change-, and Access time a file
2) stat is a command-line utility that displays detailed information about given files or file systems
3) Example: stat file.txt, gives below information about files which includes Modification-, Change-, and Access time
File: file.txt
Size: 4030 Blocks: 8 IO Block: 4096 regular file
Device: 801h/2049d Inode: 13633379 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ linuxize) Gid: ( 1000/ linuxize)
Access: 2019-11-06 09:52:17.991979701 +0100
Modify: 2019-11-06 09:52:17.971979713 +0100
Change: 2019-11-06 09:52:17.971979713 +0100
Step by step
Solved in 3 steps