HomeLinuxLinux 刪除指令歷史紀錄 Linux 刪除指令歷史紀錄 Sam Tang 11 January 2016 Linux 1 Comment Linux 下所下達的指令, 系統會將它們紀錄下來, 要查看指令紀錄可以用 history 指令: $ history history 指令除了查看指令紀錄外, 也可以刪除指令紀錄, 例如: 刪除所有指令紀錄: $ history -c 要刪除個別紀錄, 要先用 history 指令查看要刪除紀錄的編號, 例如想刪除編號為 1010 的紀錄, 可以這樣做: $ history -d 1010 你可能感興趣的內容Linux 找出佔用 CPU 及記憶體最高的進程Shell Script 限制執行時間檢查 Linux 系統是否存在 Log4j 漏洞dd 指令, 備份及回復資料工具Linux 執行多個指令Linux 更新 Symbolic Link 連結SFTP 在 Linux 傳送檔案方法Shell Script 讀取 Load Average Tags:Debian & Ubuntu, Fedora, Linux, RHEL & CentOS One Response Ibear 07 February 2016 学习了看,不过检查一次确实需要很久呢。 Reply Leave a Reply Cancel reply Current ye@r * Leave this field empty
学习了看,不过检查一次确实需要很久呢。