Terminal (macOS)

Terminal / CLI
Line Navigation
CTRL+A Move cursor to beginning of line mac
CTRL+E Move cursor to end of line mac
+F Move forward one word mac
+B Move backward one word mac
CTRL+F Move forward one character mac
CTRL+B Move backward one character mac
Editing
CTRL+K Delete from cursor to end of line mac
CTRL+U Delete from cursor to beginning of line mac
CTRL+W Delete word before cursor mac
+D Delete word after cursor mac
CTRL+Y Paste (yank) last deleted text mac
CTRL+T Swap two characters before cursor mac
CTRL+L Clear screen mac
+K Clear terminal scrollback buffer mac
Process Control
CTRL+C Interrupt current process mac
CTRL+Z Suspend current process mac
CTRL+D EOF / exit current shell mac
CTRL+S Pause terminal output (XOFF) mac
CTRL+Q Resume terminal output (XON) mac
History
CTRL+R Reverse search command history mac
Up / Down Arrow Navigate command history mac
CTRL+G Cancel history search (exit reverse-search) mac
CTRL+P Previous command (same as Up Arrow) mac
CTRL+N Next command (same as Down Arrow) mac
Window & Tabs
+T New tab mac
+W Close tab mac
+N New terminal window mac
+⇧ Shift+] Next tab mac
+⇧ Shift+[ Previous tab mac
+1–9 Switch to tab by position mac