News for hackers. Stuff that matters.
Re:What typing ^D does on Unix (2009) by spudlyo on Tuesday September 06, 2016 @03:57PM (#12438837)
Fun trick: If somebody is watching you type in your login password or SSH pubkey password, spaz wildly on the keyboard, frantically typing random characters, and then hit ^U and type in your real password.

Then you give them a puzzled look once you successfully log in as if nothing out of the ordinary just happened and say something like "What, don't you have a sufficiently complex password?".

Re:What typing ^D does on Unix (2009) by pritambaral on Wednesday September 07, 2016 @03:49AM (#12441513)
> "What, don't you have a sufficiently complex password?"

<anecdote> I actually had a sufficiently complex password, but this one time I was in a massive hurry to demo something to my teammates, I made a mistake somewhere near the end of it, quickly typed ^U, fed it all over again, made another mistake near the end, another quick ^U, and third time was the charm.

They didn't notice that I reset the password field twice, to them it was just a mega-super-duper-long password (the actual password is 20+ characters), and one of them burst out saying, "Woah! He just wrote a short story!" </anecdote>

Re:What typing ^D does on Unix (2009) by vacri on Tuesday September 06, 2016 @05:48PM (#12439510)
As long as you don't hit space you can do the same thing with ^W, as ^W will clear out the last 'word'. I use it all the time at password prompts, and more comfortable to hit than ^U.
Re:What typing ^D does on Unix (2009) by andromeduck on Tuesday September 06, 2016 @10:50PM (#12440707)
It's easier if you switch Ctrl and Caps because they n it just looks like you're just using the shift key.
Re:What typing ^D does on Unix (2009) by Practicality on Tuesday September 06, 2016 @04:24PM (#12439042)
I would like to recommend against spazing wildly at work.

Edit: It was just a joke :(