Linux: Delete Files Older Than N Days on a Schedule

Command format:

find /tmp -mtime +30 -type f -name "*" -exec rm -rf {} /;

 

Leave a Comment

Your email address will not be published.