Linux Must-Learnt Commands
- 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
本文来自博客园,作者:艾孜尔江,转载请注明原文链接:https://www.cnblogs.com/ezhar/p/16827833.html