linux 清空history以及记录原理

一、当前session执行的命令,放置缓存中,执行exit时,把缓存信息写入~/.bash_historyhtml 二、当session直接被kill时,缓存中的历史命令不会写入~/.bash_historyshell 三、正确清空当前用户的history的方法缓存 >~/.bash_history history -c #清空当前缓存中的命令 exit #关闭shell链接,能够避免
相关文章
相关标签/搜索