How do i temporarily stop bash logging to history for one command?



  • This can be useful when having to expose plain text passwords on the command line. Some command require this.

    If you add the entry to your ~/.bashrc file.

    export HISTCONTROL=ignorespace
    

    Then a space when typing commands will prevent it being recorded.



© Lightnetics 2024