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
[ Parent
| on HN ]
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...)