Linux--用history查看歷史命令

文章目錄 history 用法彙總 history——列出全部歷史命令 history 數字#——列出最近的#條命令 history -c——將目前shell中的所有history命令消除,對命令歷史文件沒有影響 history -w——將本次登錄的命令寫入命令歷史文件中, 默認寫入~/.bash_history history -r——將命令歷史文件中的內容讀入到目前shell的history記
相關文章
相關標籤/搜索