Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-23-2007, 12:50 AM   #1
Registered: Oct 2003
Location: Bombay,Maharashtra,India
Posts: 60

Rep: Reputation: 15
Question File Creation date & time in Red Hat

I have created a file somewhat in 2005. Now i want the exact date and time of creation of that file. How can I get the same ?

I tried the "stat" command but it gives me only the access,change & modified date & time.

Old 04-23-2007, 01:23 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Searching from Google, I stumbled across this (copied the "interesting" part of it, found below):

ext2, ext3 and reiser don't keep track of a file's creation time. what
people call "creation time" is (as you point out) something completely

a better name for "creation time" is "the last time at which the inode
was modified". so rather than keeping track of when the file was
created, it keeps track of things like:

* last date the file was mv'd
* last date a file's attr was changed
* last date the file's perms were changed
* last date the file's ownership or grownership was changed

stuff like that.

sorry to say, if you want to keep track of a file's original creation
date, you'll need to keep track of that yourself.

Last edited by b0uncer; 04-23-2007 at 01:30 AM.


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
i want to know the command which show the date of creation of file abhi_singh4 Red Hat 6 09-16-2011 12:02 AM
File Creation Date in linux jayukanna General 5 08-21-2006 07:08 AM
ls -al file creation date blackzone Linux - Newbie 2 08-23-2004 01:31 AM
creation date of file using the 'ls' command robt Linux - Newbie 1 03-27-2003 12:34 AM
red hat 8 and date,time ronss Linux - Distributions 2 12-04-2002 01:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 AM.

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