how to delete files older than 7 days in linux

by admin January 21, 2014 at 3:28 pm

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 {} \;

Add Comment