LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-06-2008, 06:07 AM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 579

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, 06:39 AM   #2
hempyelmo
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
You could do the command:

Code:
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 06:43 AM. Reason: precision
 
Old 02-06-2008, 09:00 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,788

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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.
or
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, 01:38 AM   #4
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 579

Original Poster
Rep: Reputation: 30
Thank you Both
 
  


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


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

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