LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-24-2009, 08:45 AM   #1
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Find folder creation time


Hi.


I'd like to find the time at which one of my linux folders were created. Is there a way to do this? I gave "ls --time=ctime /path/to/" a try, but as far as I can tell this doesn't give me the correct time.


Regards,
kenneho
 
Old 08-24-2009, 08:51 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Well, in the most common filesystem for linux (ext3) the creation time is not stored anywhere. The ctime you cited above is the "change time" that is the time at which the inode changed.
 
Old 08-24-2009, 08:56 AM   #3
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by colucix View Post
Well, in the most common filesystem for linux (ext3) the creation time is not stored anywhere. The ctime you cited above is the "change time" that is the time at which the inode changed.
Ah, that explains a lot. Thanks.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i find if somefile is being written to a folder at any point in time? MaRock Programming 10 08-25-2008 06:38 AM
how to find time of file creation of a given file??? raklo Linux - General 4 08-13-2007 06:28 AM
Detecting file creation in folder IndianMaverick Linux - General 1 06-22-2007 05:30 AM
reiserfs : creation time instead of last access time oxi Linux - General 4 02-24-2007 12:35 AM
Squid swap folder creation problem selvamporko Linux - Software 1 06-22-2005 09:56 PM


All times are GMT -5. The time now is 10:45 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration