Linux 清除登录历史记录

  

 


  1. set +o history  关闭
    set -o history  打开 
  2.  

    export HISTCONTROL=ignorespace
    or
    export HISTCONTROL=ignoreboth
    
    [space] command  # 此command不会被记录

     

  3. export HISTSIZE=0

    !  downArrow  upArrow  ctrl + r 都失效

  4. history -c
    

      

  5.  



      

posted @ 2021-06-23 17:51  ascertain  阅读(258)  评论(0编辑  收藏  举报