LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   i want to know the command which show the date of creation of file (https://www.linuxquestions.org/questions/red-hat-31/i-want-to-know-the-command-which-show-the-date-of-creation-of-file-431972/)

abhi_singh4 04-05-2006 09:05 AM

i want to know the command which show the date of creation of file
 
hi,
i am newbie in linux i just want to know there is any command which show me the date on which i create the file/directory. pls help me

xpromisex 04-05-2006 09:56 AM

have you tried ls -l inside the directory of the file?

abhi_singh4 04-05-2006 10:13 AM

thanks,
but this command shoe the modify time of the file doesnot show the date on which the file/directory is created

abhi_singh4 04-05-2006 10:14 AM

thanks,
but this command show the modify time of the file doesnot show the date on which the file/directory is created

pinga123 09-14-2011 11:48 PM

Quote:

Originally Posted by abhi_singh4 (Post 2185274)
thanks,
but this command show the modify time of the file doesnot show the date on which the file/directory is created

Just came across this while googling.

I know its 6 month old thread and i should not bump it again but i think this will help other .

As of now there are only few Linux distributions that support creation date for files (They call it birth time).Rest dont support files with creation date.

David the H. 09-15-2011 03:44 PM

Umm, it's not a 6 month old thread, it's a nearly 6 year old thread.

And while what you say is true, it's not exactly a "Linux" thing, but a filesystem support issue. The metadata fields on *nix filesystems have traditionally recorded three kinds of date; atime, ctime, and mtime.

atime is the last access time, and ctime is change time, the last time the file metadata was updated.

mtime is the last modified date of the file contents. It's the closest thing to a creation time traditionally available. Essentially, *nix filesystems have treated each modification as a completely new file, a replacement rather than an update.

Recently there's been some work towards adding a proper creation time field to *nix filesystems. ext4, at least, appears to have added this new crtime field. Most system tools and applications have yet to be updated to handle it, however.

http://flyingunix.blogspot.com/2010/...s-in-ext4.html

Interestingly, according to the above, there seems to also be a dtime deletion date field, but I have no idea what good that's supposed to be.

pinga123 09-16-2011 12:02 AM

Quote:

Originally Posted by David the H. (Post 4472814)
Umm, it's not a 6 month old thread, it's a nearly 6 year old thread.

And while what you say is true, it's not exactly a "Linux" thing, but a filesystem support issue. The metadata fields on *nix filesystems have traditionally recorded three kinds of date; atime, ctime, and mtime.

atime is the last access time, and ctime is change time, the last time the file metadata was updated.

mtime is the last modified date of the file contents. It's the closest thing to a creation time traditionally available. Essentially, *nix filesystems have treated each modification as a completely new file, a replacement rather than an update.

Recently there's been some work towards adding a proper creation time field to *nix filesystems. ext4, at least, appears to have added this new crtime field. Most system tools and applications have yet to be updated to handle it, however.

http://flyingunix.blogspot.com/2010/...s-in-ext4.html

Interestingly, according to the above, there seems to also be a dtime deletion date field, but I have no idea what good that's supposed to be.

appreciate your comment here.


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