欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Linux下清除系統(tǒng)日志的方法

  發(fā)布時間:2011-04-02 21:48:25   作者:佚名   我要評論
把下面的文件根據(jù)需要做一下修改,然后保存為clear_logs.sh,然后執(zhí)行即可。

復制代碼
代碼如下:

#!/bin/sh
cat /dev/null > /var/log/syslog
cat /dev/null > /var/adm/sylog
cat /dev/null > /var/log/wtmp
cat /dev/null > /var/log/maillog
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

相關文章

最新評論