Search This Blog

Monday, April 2, 2012

remove old files in a directory

find location -mtime +5 -exec rm {} \;

removes files which are older than 5 days.

No comments:

Post a Comment