Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-29-2007, 07:14 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 17

Rep: Reputation: 0
file creation date

How to get the creation time, last modified time for the file or directory in linux.

Old 05-29-2007, 07:17 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
ls and equivalent tools should easily show you the last modification time, but creation time is more difficult; I don't think many of the commonly used filesystems even keep that information (since it's not really important if you ask me, it's more important when the file was last altered). Maybe you need to find out which filesystem(s) do keep track of file creation times?
Old 05-29-2007, 08:32 AM   #3
LQ Newbie
Registered: May 2007
Location: Bangalore
Distribution: RHEL
Posts: 20

Rep: Reputation: 0
see 'stat' command and its usage..
this command will give you almost all information about a file/filesystem. but the time of creation can't be seen.


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 On
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
Date of file creation on the remote FTP host kender Programming 1 08-31-2006 06:37 PM
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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:18 PM.

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