iTerm2 Terminal Emulator
I use iTerm2. This cheat sheet is from
here.
Themes
Notation
Key |
Symbol |
Cmd/⊞ Win |
⌘ |
Shift |
⇧ |
Opt/Alt |
⌥ |
Ctrl |
⌃ |
Caps Lock |
⇪ |
Fn |
|
Tabs and Panes
Function |
Shortcut |
Next tab |
⌘ + → |
Previous tab |
⌘ + ← |
Go to tab |
⌘ + number |
Go to pane |
⌘ + ⌥ + number |
Go to pane by direction |
⌘ + ⌥ + arrow |
Go to pane by order |
⌘ + ], ⌘ + [ |
Split pane Horizontally (same profile) |
⌘ + D |
Split pane Vertically (same profile) |
⌘ + d |
Split pane Horizontally (new profile) |
⌘ + ⌥ + H |
Split pane Vertically (new profile) |
⌘ + ⌥ + V |
Set Mark |
⌘ + M |
Jump to Mark |
⌘ + J |
Basic Moves
Function |
Shortcut |
Move back one character |
⌃ + b |
Move forward one character |
⌃ + f |
Delete current character |
⌃ + d |
Delete previous character |
Backspace |
Undo |
⌃ + - |
Moving Faster
Function |
Shortcut |
Move to the start of line |
⌃ + a |
Move to the end of line |
⌃ + e |
Move forward a word |
⌥ + f |
Move backward a word |
⌥ + b |
Clear the screen |
⌘ + k |
Cut and Paste
Function |
Shortcut |
Cut from cursor to the end of line |
⌃ + k |
Cut from cursor to the end of word |
⌥ + d |
Cut from cursor to the start of word |
⌥ + Backspace |
Cut from cursor to previous whitespace |
⌃ + w |
Paste the last cut text |
⌃ + w |
Loop through and paste previously cut text |
⌥ + y |
Loop through and paste the last argument of previous commands |
⌥ + . |
Search the Command History
Function |
Shortcut |
Incremental search |
⌃ + r and type, repeat ⌃ + r to loop |
Search the last remembered search term |
⌃ + r, ⌃ + r |
End the search at current history entry |
⌃ + y |
Cancel the search and restore original line |
⌃ + g |