bash read password into variable code example Example: read password bash # -s parameter hides echo read -p 'Type your password:' -s PASSWORD