Hi Team
I want to know about the file creation date and time in linux. Not the file access and modified date
and time.
As we can check the file access and modified date and time by using stat command.
By using which command we can able to find the file creation date and time in linux
raghuu
August 18, 2015, 8:45am
#2
@iamarunk1898
According to my view there is no such command to find out the file creation time, unix based operating system will show you the time of access, time of modify and time of change.
1 Like
@raghuu
Thanks for your reply and support
You can use the following command to sort the files according to their modified accessed time…
# dir -ashlt /path-to-location
In new version of `stat’ command it will show you the Birth time, However it doesn’t work on ext4 filesystems (At least not in CentOS 6.7 that I use).
Look at the following link from Linus Torvalds:
https://lkml.org/lkml/2010/7/22/249
Hi,
on many filesystems under Linux, you can not find creation date of an object like file or directory