Bash command line editing cheat sheet

Tim Abell · February 10, 2014

https://www.gnu.org/software/bash/manual/bashref.html#Readline-Interaction
<ul><li dir="ltr">ctrl-a/e start/end of line</li><li dir="ltr">alt-f/b forward/back a word</li><li dir="ltr">ctrl-w/alt-d delete to start/end of word</li><li dir="ltr">ctrl-shift-_ undo (i.e. ctrl-underscore)</li><li dir="ltr">ctrl-y paste (yank) deleted text
<ul><li dir="ltr">alt-y paste older deleted text instead</li></ul></li><li dir="ltr">prefix with alt+digit (0-9) to do multiple, e.g. delete two words</li><ul><li dir="ltr">start with alt-minus to go backwards</li></ul></ul><div>
</div><div>Just a few notes I threw together for my own benefit. I finally got around to learning a bit more about editing commands on the Linux shell / terminal.

</div><div style="text-align: center;"></div>

Share: Tweet | LinkedIn
Suggest improvments: page source on github