How To Find And Delete Files Older Than X Days In Linux

2 Responses

  1. H0rnet says:

    You might to try tmpwatch

  2. JonTheWong says:

    I prefer “find -ctime +30 -delete” over, sending it to exec, not sure if its specific to RHEL and CentOS 7 but it works fine in my testing.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.