Skip to content

Delete Files Older Than x Days on Linux

 Works in cygwin as well. Bye bye old logs.

find /path/to/files* -mtime +5 -exec rm {} \;

Source: Delete Files Older Than x Days on Linux :: the How-To Geek

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*