Monday, July 24, 2023

finding created time of a file on linux commandline

 Following the different methods given at https://kodekloud.com/blog/file-creation-time-linux/#

On one of our Azure Ubuntu 20.04 servers, only the debugfs solution worked. 

sudo debugfs -R 'stat /path/to/our/file.txt' /dev/root 
... etc 
crtime: 0x64afbcf8:ea7086a8 -- Thu Jul 13 08:59:36 2023
-----------------------------------------
ls
-l --time=birth ourfile.txt
ls: invalid argument ‘birth’ for ‘--time’
Valid arguments are:
- ‘atime’, ‘access’, ‘use’
- ‘ctime’, ‘status’

--------------------------------------
stat additionalplugins.txt
... etc ...
Change: 2023-07-24 05:00:13.991923547 +0000
Birth: -



No comments:

Post a Comment