- Clear successful login history:
echo > /var/log/wtmp
- View login history:
last
- Clear command's input history:
history -c #temperarlly
sudo apt install -y wipe
wipe ~/.bash_history
- View PID of relevant port:
lsof -i:PORT_NUMBER
微信扫一扫
echo > /var/log/wtmp
last
history -c #temperarlly
sudo apt install -y wipe
wipe ~/.bash_history
lsof -i:PORT_NUMBER
相关推荐