News for hackers. Stuff that matters.
Re:Ask HN: How can I get better at bash? by _ncxu on Monday June 26, 2017 @02:29PM (#14639098)
Also CTRL-_ which is "undo whatever you just typed"
Re:Ask HN: How can I get better at bash? by SEJeff on Monday June 26, 2017 @02:38PM (#14639157)
That is a great one I didn't know (and I've been a 'nix monkey professionally since 2005). Thanks!
Re:Ask HN: How can I get better at bash? by 7171u on Tuesday June 27, 2017 @11:43PM (#14651550)
I was using CTRL+C to open new prompt instead of undoing. Thanks for this.
Re:Ask HN: How can I get better at bash? by amelius on Monday June 26, 2017 @02:59PM (#14639309)
Ok, but where is the "redo" option?
Re:Ask HN: How can I get better at bash? by Aardwolf on Monday June 26, 2017 @03:12PM (#14639408)
pressing CTRL-w a few times feels easier to me, less awkward key combination
Re:Ask HN: How can I get better at bash? by yebyen on Monday June 26, 2017 @03:55PM (#14639800)
CTRL-w just deletes a word at a time. CTRL-_ it appears doesn't just delete the whole line you just typed, it does undo of the thing you just typed... counting backspace as "one thing you just typed" -- so it does some things you can't achieve with CTRL+w, you can even get back some text that you just erased.

I never knew this shortcut before. (I will probably never use it...)