首页 > 系统相关 >Linux Must-Learnt Commands

Linux Must-Learnt Commands

时间:2022-10-30 18:02:29浏览次数:53  
标签:Commands relevant Learnt NUMBER apt login Must history

  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



标签:Commands,relevant,Learnt,NUMBER,apt,login,Must,history
From: https://blog.51cto.com/u_15127808/5807587

相关文章