清除歷史執(zhí)行命令 [root@localhost root]# history -c 或者,清空用戶目錄下的這個文件即可 [root@localhost root]# echo > ./.bash_history