Linux 下查看命令行歷史

簡介 Linux中,bash輸入的歷史記錄,會存在.bash_history(或者說root/bash_history)。 經過history查看。 web 能夠看到,不只能夠輸出正確的命令,還能夠輸入錯誤的(如abc),並且輸出的是history以前全部的命令(including history),bash_history不是緩存文件,關機不會清除,文件會保存最近的N條命令,N=$HISTFIL
相關文章
相關標籤/搜索