System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to find files older than 1 hours

 
syedar
Advisor

how to find files older than 1 hours

I need help to find files in a directory that are older than 1 hours.
Any help would be great.
2 REPLIES
Pete Randall
Outstanding Contributor

Re: how to find files older than 1 hours

Use touch to create a reference file with the desired time stamp and then use find with the "! -newer" option (not newer=older). There, of course, perfectly good man pages for both touch and find.


Pete

Pete
syedar
Advisor

Re: how to find files older than 1 hours

Thanks Pete