history查詢歷史命令

history 命令用於查詢已執行的歷史命令。shell 經常使用參數:bash n :數字,表示列出最近n行命令markdown -c :將目前的shell中的全部的history內容刪除ssh -a:將目前新增的history命令新增入histfile中,若沒有加hisfiles,則默認寫入~/.bash_historyspa -r:將histfiles的內容讀到目前這個shell 的hist
相關文章
相關標籤/搜索