Linux中history命令

[root@CentOS6 ~] # history 「列出所有的歷史記錄」

history_1  

[root@CentOS6 ~] # history 10 「列出最近10條記錄」

history_2  

[root@CentOS6 ~] #!3 「使用命令記錄號碼執行命令,執行歷史清單中的第3條命令」

history_3  

[root@CentOS6 ~] #!! 「重復執行上一個命令」

history_4  

[root@CentOS6 ~] #history -c 「清空history當前所有歷史命令的記錄」

創作者介紹
創作者 無止盡天空 的頭像
無止盡的天空

無止盡天空

無止盡的天空 發表在 痞客邦 留言(0) 人氣( 31 )