Whenever you use
sudo
on Ubuntu, the terminal will ask you to enter your user password.
That's a great security measure.
But here’s the trick for make visual feedback as you type in your password.
Make ‘sudo’ Password Entry Visible
- Open a new Terminal window (
Ctrl + Alt + T
) and enter the following command:sudo visudo
- Search or use your keyboard navigation keys to move to the line that reads:
Move to the end of this line and add the following text so that it reads:Defaults env_reset
Defaults env_reset,pwfeedback
- Press
Ctrl + X
to complete the edit, followed byY
and Enter to save the changes entered
That’s all. Next time you use sudo you’ll see little asterisks appear as you enter your password.
