Creation time for files in Linux

mekalai

Recruit
Hello All,

Is there a command to find the time & date of creation of a file in Linux. If i do a stat, i could get the file details. But i'm unable to get the time of creation of file.

Can someone tell me if there is a command to find the time & date of creation of a file in Linux?

Thanks!
 
^ You can't find creation time for a file. It isn't stored anywhere. Files have a last-modified time (shown by "ls -l"), a last-accessed time (shown by "ls -lu") and an inode change time (shown by "ls -lc"). The latter is often referred to as the "creation time" - even in some man pages -but that's wrong; it's also set by such operations as mv, ln, chmod, chown and chgrp.
 
Back
Top