Clear logs login và reboot linux

 

Login logs

Kiểm tra lịch sử login

lastlog

Xóa log login

>/var/log/lastlog

Reboot logs

Kiểm tra lịch sử reboot

lastb

Xóa log reboot

>/var/log/wtmp

>/var/log/btmp

Clear history

cat /dev/null > ~/.bash_history && history -c && exit

Was this article helpful?

Related Articles

Leave A Comment?

This site uses Akismet to reduce spam. Learn how your comment data is processed.