Bash builtin read command doesn't seem to support it, now I need to let user input a password while no echo should be displayed, what tool can I use?
help read|grep echo
IFS= read -p 'Enter password: ' -r password
printf '\nPassword entered: %s\n' "$password"
In bash you can also use read -s, but this feature isn't standard across shells.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2 years ago