Monday, July 18, 2016

Removing files older than 30 days in Unix


 find . -size +10000 -exec ls -lh {} \;   -- To get the list of files occupying more space

 find /var/spool/clientmqueue -mtime +30 -exec rm {} \;  Removes the files older than 30 days

1 comment: