Tag Archives: delete

remove files older than X days

find example to remove files older than 5 days: find /path/to/files* -mtime +5 -type f -exec rm {} \; Note that this command will not work when it finds too many files. It will yield an error like: bash: /usr/bin/find: … Continue reading

Posted in CentOS, Linux | Tagged , , , | Leave a comment