Categories
Tech Tips

How to find files modified more than X days ago

search

Find files modified more than 48 hours ago:

$ find /path -mtime +1

Find files modified more than n=90 days ago (cutoff by the hour, not the day).

$ find /path -mtime +89

Note the +(n-1) in command. Many online articles got this wrong by simply putting +90.

Leave a Reply

Your email address will not be published. Required fields are marked *