shell清除历史记录

1. 针对当前操作

关闭历史记录
[space]set +o history
备注:[space] 表示空格。并且由于空格的缘故,该命令本身也不会被记录

打开历史记录
[Space]set -o history

2. 清理历史记录

history -d xxx
原文地址:https://www.cnblogs.com/double12gzh/p/10603497.html