msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

18 May 2007 Delete files older than x days

Posted by

find /data/folder -type f -ctime +60 -exec /bin/rm {} \;


-type f : regular file
-ctime : File’s status was last changed n*24 hours ago.

Add -uid 400 if you would like to delete the files to user with uid 400.

Tags:

Comments are closed.