Archive for September, 2010
Delete all files older than a certain amount of days
0 Comments Published September 20th, 2010 in LinuxFound a nice little clean up command to clean up folders and files older than a specfic amount of days: find /path/to/files/* -mtime +90 -exec rm {} \; Just replace the 90 with the number of days old you want to delete. You can also pipe it into a log file: bash -c ‘date;find /path/to/files* [...]