When you run a command started with sudo in Ubuntu terminal, it asks you to insert the password for your user with no visual feedback as you type.
For beginners who feel uncomfortable with this terminal feature, below will teach you how to tweak your Ubuntu so that Gnome terminal (and TTY console) displays asterisks when you type in your password.
1. Press Ctrl+Alt+T on keyboard to open a terminal window. Or open terminal from Unity Dash.
2. Paste the below command in terminal and hit enter. Type in your password when prompt.
sudo visudo
It will open the configuration file “/etc/sudoers” in terminal with nano editor.
3. Make a new line:
Defaults pwfeedback
under the line:
Defaults env_reset
So it looks like this: (NOTE that the space between Defaults and pwfeedback should be a tab)
4. Now save the changes. Press Ctrl+X, type y to answer yes, press Enter to accept default file name.
Close this terminal window and done.