- 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