LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-05-2006, 09:05 AM   #1
abhi_singh4
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
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
 
Old 04-05-2006, 09:56 AM   #2
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
have you tried ls -l inside the directory of the file?
 
Old 04-05-2006, 10:13 AM   #3
abhi_singh4
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
thanks,
but this command shoe the modify time of the file doesnot show the date on which the file/directory is created
 
Old 04-05-2006, 10:14 AM   #4
abhi_singh4
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
thanks,
but this command show the modify time of the file doesnot show the date on which the file/directory is created
 
Old 09-14-2011, 11:48 PM   #5
pinga123
Member
 
Registered: Sep 2009
Posts: 676
Blog Entries: 2

Rep: Reputation: 36
Quote:
Originally Posted by abhi_singh4 View Post
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.
 
Old 09-15-2011, 03:44 PM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
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.

Last edited by David the H.; 09-15-2011 at 03:46 PM. Reason: wayward comma
 
1 members found this post helpful.
Old 09-16-2011, 12:02 AM   #7
pinga123
Member
 
Registered: Sep 2009
Posts: 676
Blog Entries: 2

Rep: Reputation: 36
Quote:
Originally Posted by David the H. View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyway to get xclock to show just the date? Royle Linux - General 11 07-30-2005 11:17 AM
Finding out the creation date for files/folders... darkarcon2015 Linux - Software 1 03-24-2005 05:59 PM
ls -al file creation date blackzone Linux - Newbie 2 08-23-2004 01:31 AM
php read file creation, modified date problem antony_csf Programming 3 08-18-2004 06:46 AM
creation date of file using the 'ls' command robt Linux - Newbie 1 03-27-2003 12:34 AM


All times are GMT -5. The time now is 09:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration