Total Pageviews

Friday, 11 September 2020

Linux下,清除登录记录及历史命令

 查看历史登录记录:

1
2
last
utmpdump /var/log/btmp

清除历史登录记录:

1
echo > /var/log/wtmp

查看失败登录记录:

1
2
lastb
utmpdump /var/log/btmp

清除失败登录记录:

1
echo > /var/log/btmp

清除历史命令:

1
2
history -c
echo > ~/.bash_history

No comments:

Post a Comment