Delete files not modified in n days

Useful for clearing out caches that aren't properly cleaned out otherwise.

# Delete files not modified in 30 days
find /path/to/files* -mtime +30 -exec rm {} \;


CategoryCheatSheet

SamatsWiki: CheatSheet/GNUFind (last edited 2011-03-31 23:00:57 by SamatJain)