News for hackers. Stuff that matters.
Re:Mastering Bash and Terminal by teddyh on Saturday January 14, 2017 @04:29PM (#13400669)
> 8. alt-w - delete the word behind of the cursor

He means “ctrl-w”. But since that only works in bash, not in Emacs or other tools with Emacs key bindings, it makes more sense to use (in his terminology) “alt-backspace”. This does the same thing, and works both in the shell and in Emacs-like environments.

Re:Mastering Bash and Terminal by syrrim on Saturday January 14, 2017 @06:49PM (#13401367)
Another advantage to using alt-backspace over ctrl-w is that the former has the same semantics as alt-b. ctrl-w considers a word to be anything surrounded by spaces, whereas alt-b and alt-backspace consider a word to be any consecutive string of word characters.
Re:Mastering Bash and Terminal by u801e on Saturday January 14, 2017 @05:17PM (#13400901)
The default key bindings in bash are listed in the readline section of the bash man page (they mostly match the emacs key bindings).
Re:Mastering Bash and Terminal by Lio on Sunday January 15, 2017 @09:32AM (#13404120)
It may be worth noting that C-w also works in Vim insert mode.

So, for me, it works in both shell and editor.

Re:Mastering Bash and Terminal by blockloop on Saturday January 14, 2017 @04:32PM (#13400685)
Ah yes. Thank you for the correction.