Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-29-2005, 05:52 AM   #1
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
Deleting Files Older Than 2 Hours using Find?

I was wondering if there was any way to use the find command to find all files created in a certain directory that are older than 2 hours? I looking the man page and the -atime -ctime and -mtime parameters all take days as parameters, not hours. So is there any way to do this? Or perhaps there is a workaround? Thanks for your time.
Old 06-29-2005, 06:10 AM   #2
Registered: Jun 2002
Posts: 302

Original Poster
Rep: Reputation: 31
Sorry. I found it. It's the -amin, -cmin, and -mmin parameters...


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
Cron Question - Delete files in a dir older than 48 hours? t3___ Linux - Newbie 5 10-11-2011 03:42 AM
Delete files after 24 hours Azhrarn Linux - Newbie 3 08-29-2005 12:00 PM
mysql down...can't find a fix after several hours :( I_AM Linux - General 1 03-02-2005 08:34 PM
WARNING: DNS record is older than 3 hours drake_101 Linux - Newbie 0 01-05-2005 09:57 PM
find files older than another file bmeckle Linux - Software 2 10-21-2004 10:50 AM > Forums > Linux Forums > Linux - Software

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