Bash Scripting - User Input
Which script snippet correctly reads a password twice silently and verifies both inputs match in bash?
read -s -p "prompt" variable to hide input and show prompt.echo to move to a new line since input is hidden.[ "$pass1" = "$pass2" ] with quotes to avoid errors.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions