4 ms·
Make sure you put a space at the beginning of your command, so you don't leave your password sitting plaintext in your bash history.
by saalweachter 4y ago
Make sure you put a space at the beginning of your command, so you don't leave your password sitting plaintext in your bash history.
- geniium 4y agoOh I just learned something, thank you.
- cbm-vic-20 4y agoIf you're using bash, you'll need a to use HISTIGNORE or HISTCONTROL environment variables to do this.
- bombolo 4y agoIf you're using bash, you can just leave a space before the command, like the other commentor said.
- seedie 4y agoThats true if HISTCONTROL is set to `ignorespace` or `ignoreboth` https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-HISTCONTROL https://www.gnu.org/software/bash/manual/html_node/Bash-Vari...
- denysvitali 4y agoread -s -r MY_PASSWORD Then, after typing your password you can safely use the $MY_PASSWORD variabile