平常在公有服务器中时常有敏感操作命令-不想让人知道 或者秀操作 history -c 但是并不能彻底清除历史记录文件,再次打开终端时输入history依然可以看到历史命令,通过以下操作彻底删除 #先删除历史记录文件 rm -rf ~/.bash_history #再清空缓存区 history -c Last modification:October 18, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏