清除Linux系统历史记录

星扬
2022-05-29 / 0 评论 / 128 阅读 / 正在检测是否收录...
echo > /var/log/wtmp
echo > /var/log/btmp
echo>/var/log/lastlog
echo > /var/log/secure
echo > /var/log/messages
echo>/var/log/syslog
echo>/var/log/xferlog
echo>/var/log/auth.log
echo>/var/log/user.log
cat /dev/null > /var/adm/sylog
cat /dev/null > /var/log/maillog
cat /dev/null > /var/log/openwebmail.log
cat /dev/null > /var/log/mail.info
echo>/var/run/utmp
echo > ~/.bash_history
history -c
echo > .bash_history
history -cw
0

评论 (0)

取消