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

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

2. 清理历史记录

history -d xxx

相关文章: