Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I understand that a standard terminal security feature is to not show '*'s or indicate any kind of progress of password input. If I know that I have typed a password wrong, rather than having to hit enter and wait for the form to ask me again, is there a way to remove all hidden input?

share|improve this question
up vote 13 down vote accepted

In bash, following will clear your input before the cursor: Ctrl+U.

Same applies for passwords, i.e.: my-wrong-password Ctrl+U my-good-password

share|improve this answer
Working perfectly, will mark as correct in 5 minutes when I'm allowed. Thanks. – Anonymous May 29 '12 at 13:29

I always mash like 100 times on backspace and it seems to work for me. And re-enter my password

share|improve this answer
Hey Dr Bunsen, just tried that, not working for me..? – Anonymous May 29 '12 at 13:24
try Ctrl + U and backspace also works on 12.04, m8 of mine just checked – Dr_Bunsen May 30 '12 at 8:09
Yep that's working for me, marked Andrejs Cainikovs' answer as correct. – Anonymous May 30 '12 at 8:10
ok ;) good to hear thats its working for you. what Ubuntu version are you running?! – Dr_Bunsen May 30 '12 at 8:18
I'm also on 12.04. – Anonymous May 30 '12 at 8:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.