Linux Terminal – Clear Mistyped Invisible Password on Shell

inputterminal

One thing that annoys me using Linux's terminal is when I have to type a invisble password, like when you run ssh. Sometimes I mistype one or more letters and then I have to press backspace key a few times to make sure that I erased everything to start again.

I know this is not a big deal but since on the other day I found out that pressing CTRL+L "clears" the terminal I was wondering if there's a way to clear/erase the invisible password without relying on backspace or pressing enter key to try again.

Best Answer

You just have to type ctrl+u.

Enjoy =)

Related Question