LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



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

Rep: Reputation: 0
file creation date


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


Thanks,
Prashant.
 
Old 05-29-2007, 08:17 AM   #2
b0uncer
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, 09:32 AM   #3
mmn357157
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.
http://www.linuxdevcenter.com/linux/...sp?path=s/stat
 
  


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 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 01:02 AM
Date of file creation on the remote FTP host kender Programming 1 08-31-2006 07:37 PM
File Creation Date in linux jayukanna General 5 08-21-2006 08:08 AM
ls -al file creation date blackzone Linux - Newbie 2 08-23-2004 02:31 AM
creation date of file using the 'ls' command robt Linux - Newbie 1 03-27-2003 01:34 AM


All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
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