Linux中history命令
[root@CentOS6 ~] # history 「列出所有的歷史記錄」
[root@CentOS6 ~] # history 10 「列出最近10條記錄」
[root@CentOS6 ~] #!3 「使用命令記錄號碼執行命令,執行歷史清單中的第3條命令」
[root@CentOS6 ~] #!! 「重復執行上一個命令」
[root@CentOS6 ~] #history -c 「清空history當前所有歷史命令的記錄」
Linux中history命令
[root@CentOS6 ~] # history 「列出所有的歷史記錄」
[root@CentOS6 ~] # history 10 「列出最近10條記錄」
[root@CentOS6 ~] #!3 「使用命令記錄號碼執行命令,執行歷史清單中的第3條命令」
[root@CentOS6 ~] #!! 「重復執行上一個命令」
[root@CentOS6 ~] #history -c 「清空history當前所有歷史命令的記錄」
請先 登入 以發表留言。