1.查看終端輸入歷史記錄bash
cat ~/.bash_history |less 能夠查看你輸入的歷史記錄,能夠找到這個文件用文本編輯打開less
2.歷史記錄在這個目錄下code
$ ~/.bash_history
3.清楚歷史記錄終端
在終端 輸入 :history -c 文件