linux-history命令,关联, April 27, 2023 参考 Delete history without a trace in Linux stackexchange.com - How to remove a single line from history? 清除history 不记录之后的命令到history: set +o history 删除第n条命令 1 2history -d n history -w 清除所有history 1 2history -c history -w