清空Linux的历史记录

清空Linux的历史记录


#第一步

  • >~/.bash_history

#清空当前缓存中的命令

  • history -c

#关闭shell连接,可以避免写入~/.bash_history

  • exit

猜你喜欢

转载自blog.csdn.net/ATYtian/article/details/129163088