LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   file creation date (https://www.linuxquestions.org/questions/linux-general-1/file-creation-date-557423/)

prashantbhushan 05-29-2007 07:14 AM

file creation date
 
hello,
How to get the creation time, last modified time for the file or directory in linux.


Thanks,
Prashant.

b0uncer 05-29-2007 07:17 AM

ls and equivalent tools should easily show you the last modification time, but creation time is more difficult; I don't think many of the commonly used filesystems even keep that information (since it's not really important if you ask me, it's more important when the file was last altered). Maybe you need to find out which filesystem(s) do keep track of file creation times?

mmn357157 05-29-2007 08:32 AM

see 'stat' command and its usage..
this command will give you almost all information about a file/filesystem. but the time of creation can't be seen.
http://www.linuxdevcenter.com/linux/...sp?path=s/stat


All times are GMT -5. The time now is 03:02 PM.