This is the common requirement of a system admin to delete old log files from a specified folder of specific date , size , name or number.
Here we going to find files larger then 400mb size and delete it.
#find /var/log/httpd/ -size +400M -exec rm -rf { }\;
You can change the size as per your requirement.
You can change the size as per your requirement.
No comments:
Post a Comment