history 基本用法

設置記錄保存的數量,默認1000:html /etc/profile 記錄保存文件,可用來查看或修改記錄:bash ~/.bash_history 若是是root用戶就是在/root/.bash_history 直接刪掉這個文件會清除全部歷史記錄,再登錄系統會自動從新生成這個文件。  沒法清除記錄的方式post history -c   轉載於:https://www.cnblogs.com/ga
相關文章
相關標籤/搜索