read -s -p 'Password: ' PASS

Category: Shell & Bash

read -s -p 'Password: ' PASS

Read input silently (no echo) for passwords

Reads input without showing what the user types — used for passwords. -s means 'silent' (no echo).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.