Nothing shows up in the terminal when I type my password

When I'm about to install a program in the terminal it wants the password:

[sudo] password for xxx:

But when I start to type my password nothing happens. What should I do?


Even though no characters appear when you type your password, you are actually typing your password.

So type password, then hit Enter and see the magic.


For security reasons there is no feedback of passwords given in the terminal. Read the following discussion on reasoning behind this and why this will not be implemented:

  • Bug #194472: Entering password in Terminal gives no visual feedback

In this discussion, and also given in the answer to a corresponding question at superuser

  • Feedback when typing password at a sudo prompt

There is an option to enable password feedback for sudo and only for sudo by editing options in the sudoers file.

Warning: The instructions below are for advanced users only. If something goes wrong when editing the sudoers file, and this file is inaccessible or malformed you will have effectively locked out yourself and any other administrator users of performing any administrative tasks in your system. It is not a good idea to do this on a productive system.

To enable password feedback by asterisks * when running the sudo command we have to edit the sudoers file with

sudo visudo

We then will have to add pwfeedback to the default options as shown below:

Defaults        env_reset,pwfeedback

Passwords are hidden so no-one can see over your shoulder when you enter it. It's a security measure.


Password is not shown when you write it in the terminal after the sudo command but it is still read. Is this the case here? i.e. have you tried to give your password and press Enter?