How To Make Sudo Command Passwords Visible in the Terminal

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

  1. Open a new Terminal window (Ctrl + Alt + T) and enter the following command:
    sudo visudo
  2. Search or use your keyboard navigation keys to move to the line that reads:
    Defaults env_reset
    Move to the end of this line and add the following text so that it reads:
    Defaults env_reset,pwfeedback
    Screenshot from 2016-08-17 19-42-49
  3. Press Ctrl + X to complete the edit, followed by Y 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.
Screenshot from 2016-08-17 19-49-00