Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-11-2009, 03:28 PM   #1
LQ Newbie
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Any command to check the creation time of a file?


Is there any command in Linux, which lets you know the creation time of file?
Stat only gives info on Access time, modification time and change time.
Old 05-11-2009, 03:43 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ,

And no, there is no concept of a creation time in Linux (or Unix).

Old 05-11-2009, 04:03 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
There are only those three properties....When you create a file, they are all set to the creation time. But, that original time is not preserved anywhere.
Old 05-11-2009, 04:34 PM   #4
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,724

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
This somewhat controversial concept is however starting to emerge in some Unix filesystems like UFS2/st_birthtime, ZFS/crtime and Ext4/crtime.
eg on OpenSolaris:
$ touch foo
$ date >foo
$ ls -l -% all foo
-rw-r--r--   1 jlliagre      31 may  11 22:30 foo
		timestamp: atime	 May  11 22:30:05 2009 
		timestamp: ctime	 May  11 22:30:07 2009 
		timestamp: mtime	 May  11 22:30:07 2009 
		timestamp: crtime	 May  11 22:30:05 2009
Old 05-11-2009, 05:52 PM   #5
Gentoo support team
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40

If your filesystem is always mounted with the noatime option, then the access time given by stat will be the create time.
Old 05-12-2009, 10:36 AM   #6
LQ Newbie
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up Thanks & Awesome

thanks to all...
Really great info Jiliagre and Neddy..


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
File System Creation Time meshcurrent Linux - General 5 02-08-2009 12:46 PM
file creation time dina3e Linux - Newbie 2 03-25-2008 01:45 PM
File Creation Time? enine Linux - General 9 05-17-2006 12:46 PM
list file creation time allelopath Linux - General 2 08-02-2005 10:02 PM
Time of creation of a file proxyserver Linux - Software 2 04-11-2004 11:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 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