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 02-06-2008, 07:07 AM   #1
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 584

Rep: Reputation: 30
find out the files created on a particular date.

Hi Everyone,

Is there a way to find out the files created on my linux box on 11th ,January 2008.

How can i use the find command. Is there any other way there.

Please help me.
Thanks in advance.
Old 02-06-2008, 07:39 AM   #2
LQ Newbie
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
You could do the command:

ls -laR / | grep "2008-01-11"
which will scan all your root directory recursively. It took me about 4 minutes to scan 10 GB. You must be a superuser to see all the files. There's probably a more efficient way... Look for the command "locate" maybe.

Note: The date in the "ls" output is not necessarily the creation date. It could be also a date for a modification of the file.

Last edited by hempyelmo; 02-06-2008 at 07:43 AM. Reason: precision
Old 02-06-2008, 10:00 AM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,846

Rep: Reputation: 342Reputation: 342Reputation: 342Reputation: 342
The file creation time is not stored anywhere. The only times you can get in re a file are access time (atime), modification time (mtime), and inode change time (ctime).

There are basically only two ways to get the creation time of a file:
a) if the file has not been accessed or modified, and the inode has not changed since it was created.
b) if you created a seperate text file and recorded the filename and creation time.

I've read that the BSDs have a btime (birth time) which records the creation time of a file, but I can't seem to verify it.
Old 02-08-2008, 02:38 AM   #4
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 584

Original Poster
Rep: Reputation: 30
Thank you Both


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
How to - list files that were created aftre certain date kaprasanna Linux - Newbie 2 12-10-2007 04:50 AM
Is there a way to find recently created/edited files without using find? BrianK Linux - General 2 10-15-2007 10:41 PM
ow do I delete all files which were created on a specific date marsguy Linux - General 9 08-21-2007 09:15 AM
Using FIND to locate files created between certain dates billybobjoe1984 Programming 6 07-23-2005 07:07 PM
Date interrogation for files created chunky Linux - General 2 08-03-2004 04:31 PM

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