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
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
Any suggestions/comments would be appreciated.
ReplyDelete