Terminal Cheatsheet
Legend
- a command:
git commit -am "Create login auth feature"
- a word, eg.:
commit
- a character, eg.:
i
in commit
word
Shortcuts (Ctrl)
- Ctrl + Q - Quit terminal
- Ctrl + W - Remove word till cursor
- Ctrl + E - Move cursor to the end of command
- Ctrl + R - ???
- Ctrl + T - Reorder chars: move char under cursor to the left
- Ctrl + Y - ???
- Ctrl + U - Remove all chars: from first char, to cursor
- Ctrl + I - ???
- Ctrl + O - ???
- Ctrl + P - ???
- Ctrl + A - Move cursor to the first character
- Ctrl + S - ???
- Ctrl + D - Remove character after cursor (works as Delete)
- Ctrl + F - Move cursor to the next character
- Ctrl + G - ???
- Ctrl + H - Remove character before cursor (works as Backspace)
- Ctrl + J - Run a command
- Ctrl + K - Remove all chars: from cursor, to last char
- Ctrl + L - Clear screen / terminal (only prompt will be visible)
- Ctrl + Z - Replace command to previous command
- Ctrl + X - ???
- Ctrl + C - New prompt
- Ctrl + V - Paste copied text
- Ctrl + B - Move cursor to the prev character
- Ctrl + N - ???
- Ctrl + M - Run a command
Shortcuts (Option)
- Option + > - Move cursor to the next special char (eg. space @ - : /)
- Option + < - Move cursor to the prev special char