Guest peterepka Posted June 25, 2014 Posted June 25, 2014 Hello. I need to write a script to delete files older than 30 days in the tmp directory of server. would the following work ? /tmp -mtime +30 -type f -exec rm {} \; thanks in advance Pete Continue reading... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.