Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

how to delete files older than 7 days in linux

With the help of Find command by passing an argument, the files which are 7 days older can be deleted.

Command Syntax :

find /pathtodir -type f -mtime +5 -exec rm {} \;

No comments yet.

Leave a Comment

You must be logged in to post a comment.