A quick terminal cursor cheat sheet

1 min read

I was reading through stuff in the art-of-commandline and found some terminal key combinations that help navigating. To have a nice overview I quickly put it together in a sheet. 🙈

ctrl + a: move to the beginning of the line, alt + f: move one word forward, ctrl + e: move to the end of the line, alt + b: move one word backward, ctrl + k: delete to the end of the line

Enjoy!

Edited: it turns out that you can enable "Natural Text Editing" in iterm to allow jumping by word with alt + left/right. (thanks to Hernán Magrini for pointing that out)

Related Topics

See null comment.