File creation time | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

File creation time

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-19-2012
mastansaheb mastansaheb is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 3 March 2014, 1:03 PM EST
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
File creation time

Hi Everybody,

I would like to know file creation date and time in linux. I went throgh google and forums got some information but from that i am not sure for my question. Please check the following information.

"ls -l" ==> but it is just gives the last modified time and date of the file.
# stat <filename>==>but it is giving information about access time,
modified time and changing time.


Please share with you answers with me.

Thanks,
Mastan
Sponsored Links
    #2  
Old 12-19-2012
itkamaraj's Avatar
itkamaraj itkamaraj is offline Forum Advisor  
^Kamaraj^
 
Join Date: Apr 2010
Last Activity: 8 August 2014, 4:56 AM EDT
Posts: 3,057
Thanks: 33
Thanked 658 Times in 637 Posts
you can retrieve the creation time in ext4 file system . Other filesystem doesnt have this information.


Code:
 
debugfs -R 'stat <INODE_NUMBER_OF_FILE>' /ext4/filesystem

you can retrieve the inode number by using ls -i filename
The Following 2 Users Say Thank You to itkamaraj For This Useful Post:
Scott (12-19-2012), thmnetwork (01-02-2013)
Sponsored Links
    #3  
Old 12-19-2012
mastansaheb mastansaheb is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 3 March 2014, 1:03 PM EST
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Very much thnx scott
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find file creation time learnbash Shell Programming and Scripting 2 05-31-2010 04:00 AM
File creation time in seconds chary Shell Programming and Scripting 7 04-24-2010 09:17 PM
File creation time mr_manii Programming 2 08-28-2009 07:56 AM
Unix File creation time tinivt Shell Programming and Scripting 2 01-23-2007 05:27 AM
file creation time sskb UNIX for Dummies Questions & Answers 1 10-04-2001 12:03 PM



All times are GMT -4. The time now is 02:09 PM.