Opening the Ubuntu Terminal for the first time, running an administrative command with sudo, seeing [sudo] password for user:, and typing on your keyboard only to watch the cursor sit completely still with zero dots, stars, or letters appearing makes almost everyone assume the terminal froze or their keyboard stopped responding. In reality, your keystrokes are registering normally — Ubuntu deliberately hides every trace of your password for security.
Why Ubuntu Shows Zero Characters (Not Even Asterisks)
Unlike web forms or graphical login windows that display a bullet or star for each keypress, Unix and Ubuntu terminals suppress 100% of visual echo when reading passwords. That prevents anyone glancing over your shoulder — or peeking at screen recordings — from counting even how many characters long your password is.
- What to do right now: Simply type your normal Ubuntu login password carefully without expecting the cursor to budge, and press Enter.
- Watch out for Caps Lock or Num Lock: Because nothing prints on screen, make sure your keyboard Caps Lock light is off and (on compact laptops) Num Lock is not turning letters into numbers before hitting Enter.
How to Make Ubuntu Terminal Show Asterisk Stars (***) for Passwords (Optional)
If seeing no feedback while typing makes mistyping long passwords frustrating on your personal laptop, you can enable classic visual * stars safely inside Ubuntu’s sudo configuration using the built-in editor check tool:
- Open Terminal (Ctrl + Alt + T) and launch the safe sudoers editor:
sudo visudo - Type your password invisibly one last time and press Enter.
- Use the Down Arrow key to find the line reading:
Defaults env_reset - Change that line carefully to append
,pwfeedbackso it reads:Defaults env_reset,pwfeedback - Save and exit safely (in default Ubuntu
nanoeditor, press Ctrl + O, Enter, then Ctrl + X). Always usevisudorather than editing/etc/sudoersdirectly, becausevisudochecks syntax before saving so you never lock yourself out.
Next time you run a fresh sudo command in a new terminal window (run sudo -k to test immediately), every password keystroke echoes back a clean * asterisk so you always know your keyboard registered every press.