LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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


Hi,
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
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

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


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


All times are GMT -5. The time now is 06:50 AM.

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