Hi guys,
I am new here first post.
Now i show how to clear all log files with safe. This just clear log files (null) not delete it. DO NOT delete the log files under /var/logs/ or you could get errors.
And now free 10+GB for me… Useful!
Here is the code
cat /dev/null > /var/log/messages
cat /dev/null > /var/log/openwebmail.log
cat /dev/null > /var/log/maillog
cat /dev/null > /var/log/secure
cat /dev/null > /var/log/httpd/error_log
cat /dev/null > /var/log/httpd/ssl_error_log
cat /dev/null > /var/log/httpd/ssl_request_log
cat /dev/null > /var/log/httpd/ssl_access_log
cat /dev/null > /var/log/httpd/access_log
cat /dev/null > /var/log/btmp
cat /dev/null > /var/log/cron
cat /dev/null > /var/log/lastlog
cat /dev/null > /var/log/mysqld.log
cat /dev/null > /var/log/yum.log
cat /dev/null > /var/log/proftpd/auth.log
cat /dev/null > /var/log/proftpd/tls.log
cat /dev/null > /var/log/proftpd/xfer.log
cat /dev/null > /var/log/boot.log
cat /dev/null > /var/log/bfd_log
cat /dev/null > /var/log/apf_log
cat /dev/null > /var/log/wtmp