关闭历史记录 [space]set +o history 备注:[space] 表示空格。并且由于空格的缘故,该命令本身也不会被记录 打开历史记录 [Space]set -o history
history -d xxx
shell清除历史记录
原文:https://www.cnblogs.com/double12gzh/p/10603497.html