Enter a password in the Terminal window on Mac
When a password is required in the Terminal window, you see a password prompt and the cursor changes to a key.
In the Terminal app on your Mac, type your administrator account password at the prompt, then press Return.
WARNING: To keep your password secure, the characters in your password aren’t displayed as you type. Even though no characters appear as you type and the cursor doesn’t move, enter your password, then press Return.