linux清理日志

cat /var/log/auth.log|more

echo > /var/log/syslog
echo > /var/log/messages
echo > /var/log/messages.1
echo > /var/log/messages.1.gz
echo > /var/log/messages.2.gz
echo > /var/log/messages.3.gz
echo > /var/log/messages.4.gz
echo > /var/log/messages.5.gz
echo > /var/log/messages.6.gz
echo > /var/log/messages.7.gz
echo > /var/log/messages.8.gz
echo > /var/log/messages.9.gz
echo > /var/log/messages.10.gz
echo > /var/log/httpd/access_log
echo > /var/log/httpd/error_log
echo > /var/log/xferlog
echo > /var/log/secure
echo > /var/log/auth.log
echo > /var/log/auth.log.1
echo > /var/log/auth.log.1.gz
echo > /var/log/auth.log.2.gz
echo > /var/log/auth.log.3.gz
echo > /var/log/auth.log.4.gz
echo > /var/log/auth.log.5.gz
echo > /var/log/auth.log.6.gz
echo > /var/log/user.log
echo > /var/log/user.log.1
echo > /var/log/user.log.2.gz
echo > /var/log/user.log.3.gz
echo > /var/log/user.log.4.gz
echo > /var/log/user.log.5.gz
echo > /var/log/wtmp
echo > /var/log/wtmp.1
echo > /var/log/wtmp.2.gz
echo > /var/log/wtmp.3.gz
echo > /var/log/lastlog
echo > /var/log/btmp
echo > /var/log/btmp.1
echo > /var/log/btmp.2.gz
echo > /var/log/btmp.3.gz
echo > /var/run/btmp.4.gz
echo > /var/run/syslog
echo > /var/run/syslog.1
echo > /var/run/syslog.2.gz
echo > /var/run/syslog.3.gz
echo > /var/run/syslog.4.gz
echo > /var/run/syslog.5.gz
echo > /var/run/syslog.6.gz
echo > /var/run/syslog.7.gz
echo > /var/run/syslog.8.gz
echo > /var/run/daemon.log.1
echo > /var/run/cloud-init-output.log
echo > /var/run/cloud-init.log
echo > /var/run/faillog
echo > /var/run/dpkg.log.1
echo > /var/run/alternatives.log.1
echo > /var/run/kern.log.2.gz
echo > /var/run/kern.log.3.gz
echo > /var/run/kern.log.4.gz
echo > /var/run/alternatives.log.1
history -c

此条目发表在linux vps 日志分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Protected by WP Anti Spam