1、rm -f /root/.bash_profile 历史命令记录在此文件
2、history -c 清除缓存
会话退出后重新连接输入history可以看到历史命令清空了。两条命令的顺序不能乱
posted on 2020-07-08 16:25 狄成 阅读(2640) 评论(0) 收藏 举报