This blog post is to help me remember shell shortcut commands. The post will be edited as I remember or find new shortcuts that are useful to me.

Command Action
CTRL A Jump to beginning of line
CTRL E Jump to end of line
CTRL F Move cursor forward one character
CTRL B Move cursor backwards one character
ALT B Jump back one word
ALT F Jump forward one word

Apple Mac Terminal Users

If you are SSHing into a Linux instance from an Apple Mac you may have issues with commands that use ALT, as the Option key on the Mac keyboard doesn’t seem to default to ALT in remote terminals, or at least didn’t for me. The solution for this: Terminal > Settings > Profiles > Keyboard > enable “Use Option as Meta key”.