Linux Must-Learnt Commands

  1. Clear successful login history:
 echo > /var/log/wtmp
  1. View login history:
last
  1. Clear command's input history:
history -c  #temperarlly
sudo apt install -y wipe
wipe ~/.bash_history
  1. View PID of relevant port:
lsof -i:PORT_NUMBER
posted @ 2022-10-26 12:00  艾孜尔江  阅读(25)  评论(0)    收藏  举报