-mtime is based on 24 hours.
Running your commant with -mtime +0 will not return any of the files in the /u02/backup directory as none of those files are more than 24 hours old. Granted today is the 17th and yesterday was the 16th, the oldest file in that dir is: 16:50, right now it's only 15:24 --not quite 24 hours old.
Running -time +1 will return all files older than 48 hours. Now in the find manual it says X*24 soo you'd think -mtime +2 would be 48, but for some odd reason it's treating it like 72 hours.
The exact command I'd like to use is:
Code:
find . * -mtime +2 -exec rm {} \;
However, until I fix this I'm using:
Code:
find . * -mtime +2 -exec ls -la {} \;
I'm looking to find all files within a directory that are older than 72 hours and remove them.
Simple right? Well, I don't mind slapping find into working using +2 to reutnr 72, but I can't get it outta my head that 2*24 == 48 but it's not.
What gives?