Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-06-2006, 03:43 AM   #1
Registered: May 2006
Posts: 55

Rep: Reputation: 15
find command : finding files that are created within last 24 hours

Hi friends,

I have a directory which in-turn consists of subdirectorie(s) and/or file(s). Using find commond we can find the file modified 24 hours ago etc. But I want to find all the files that are newly created (or copied and pasted to this directory ) within last 24 hours.

How can I do this using find command???

please help,
Thanks in advance.
Old 11-06-2006, 04:47 AM   #2
LQ Newbie
Registered: Apr 2006
Location: Ankara \ TURKIYE
Distribution: Red Hat Enterprise 4
Posts: 19

Rep: Reputation: 0
hi ;
firstly ı suggest you exploring man pages and google searches for any help;

find [path] [options] is general use ; use man for detailed info.

find . -ctime -1 # finds files which are created in less then 1 day from currrent folder.
find . -ctime +2 # finds files which are created older then 2 days from currrent folder.

find has a set of options available in man

wish this helps you;
have a nice day .


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
Find all files created or modified between 2 times MicahCarrick Linux - Software 3 06-29-2006 05:22 PM
Using FIND to locate files created between certain dates billybobjoe1984 Programming 6 07-23-2005 07:07 PM
Deleting Files Older Than 2 Hours using Find? LinuxGeek Linux - Software 1 06-29-2005 07:10 AM
having trouble with ls and find finding files. dr_zayus69 Linux - Software 4 05-26-2005 11:36 AM
Command to Finding Source files for a library file jonty_11 Programming 1 03-23-2005 06:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:19 AM.

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
Open Source Consulting | Domain Registration