|
I found something like this:
find /yourdir/tmp -mtime +1 -exec rm {} \; //where 1 is number of days since it was modified
However, I wonder if there is a way to change the +1 from days to hours. So, instead of deleting a file older than 1 day, it would delete it if it is older than 1 hour.
Does anyone know how to do that?
|