Updated as original was unclear.
I'm setting up postfix on a computer to work with my email's SMTP.
I don't want to enter my credentials in plain text, especially when typing in public.
Is it possible to make bash not show my input for a command or two?
Example: I'm entering a series of commands and then I want to echo a username and password into a config file.
I'd like to quickly go into a mode where my input isn't shown on screen, then easily leave that mode with ctl+c
.
GMAIL_PASSWORD=secret
maybe I should write a small script that asks for the env name and then password. – Philip Kirkbride Oct 09 '17 at 14:13