Remove files older then x days
Ever needed to remove old files from an linux machine but no idea how to just target files that are older then X days?
find ~folder/to/crap -type f -mtime +14 -exec rm '{}' \;
Ever needed to remove old files from an linux machine but no idea how to just target files that are older then X days?
find ~folder/to/crap -type f -mtime +14 -exec rm '{}' \;