#Cursor Movement
| Action | Shortcut |
|---|---|
| Beginning of line | Ctrl + A |
| End of line | Ctrl + E |
| Forward one character | Ctrl + F |
| Backward one character | Ctrl + B |
| Forward one word | Option + F (Mac) / Alt + F |
| Backward one word | Option + B (Mac) / Alt + B |
#Editing
| Action | Shortcut |
|---|---|
| Delete character before cursor | Ctrl + H / Backspace |
| Delete character after cursor | Ctrl + D |
| Delete word before cursor | Ctrl + W |
| Delete word after cursor | Option + D (Mac) / Alt + D |
| Delete to end of line | Ctrl + K |
| Delete to beginning of line | Ctrl + U |
| Transpose characters | Ctrl + T |
| Paste last deleted | Ctrl + Y |
| Clear line | Ctrl + C |
#History
| Action | Shortcut |
|---|---|
| Previous command | Ctrl + P / β |
| Next command | Ctrl + N / β |
| Search history | Ctrl + R |
| Cancel search | Ctrl + G |
| Run last command | !! |
| Last argument of previous command | !$ |
| List history | history |
#Process Control
| Action | Shortcut |
|---|---|
| Interrupt (SIGINT) | Ctrl + C |
| Suspend process | Ctrl + Z |
| EOF (End of input) | Ctrl + D |
| Quit (SIGQUIT) | Ctrl + \ |
| Resume in background | bg |
| Resume in foreground | fg |
#Screen
| Action | Shortcut |
|---|---|
| Clear screen | Ctrl + L / clear |
| Stop output | Ctrl + S |
| Resume output | Ctrl + Q |
#Auto Completion
| Action | Shortcut |
|---|---|
| Auto complete | Tab |
| Show all completions | Tab Tab |
#iTerm2 Specific (Mac)
| Action | Shortcut |
|---|---|
| New tab | β + T |
| Close tab | β + W |
| Split horizontally | β + D |
| Split vertically | β + Shift + D |
| Switch panes | β + Option + λ°©ν₯ν€ |
| Find | β + F |
| Full screen | β + Enter |
| Hotkey window | μ€μ νμ |
| Instant replay | β + Option + B |
Note
Most shortcuts work across Unix shells like Bash and Zsh. iTerm2 specific shortcuts are only available on Mac.
μ΄ ν¬μ€ν μ μΏ ν‘ ννΈλμ€ νλμ μΌνμΌλ‘, μ΄μ λ°λ₯Έ μΌμ μ‘μ μμλ£λ₯Ό μ 곡λ°μ΅λλ€.