26 February 2024
macOS Terminal Hotkeys: A Quick Guide
A concise compilation of key Terminal hotkeys for macOS, created as a quick reference to ensure the most useful shortcuts are always at hand. This list aims to facilitate smoother navigation and command execution, potentially serving as a useful reminder for anyone looking to optimize their Terminal workflow.
Basic Terminal Operations
- Command + N: Open a new Terminal window.
- Command + T: Open a new tab.
- Command + W: Close the current tab/window.
- Command + Q: Quit Terminal.
- Command + K: Clear the Terminal screen.
- Command + C: Interrupt the current command.
- Command + Z: Suspend the current command. Resume with fg.
Navigating and Editing Commands
- Control + A: Move to the start of the line.
- Control + E: Move to the end of the line.
- Option + Click: Move the cursor to the clicked position.
- Fn + Arrow Keys: Fast scroll through the Terminal output.
- Esc + B: Move one word backward.
- Esc + F: Move one word forward.
Text Manipulation
- Control + U: Clear the line before the cursor.
- Control + K: Clear the line after the cursor.
- Control + W: Delete the word before the cursor.
- Esc, then D: Delete the word after the cursor.
- Ctrl + T: Transpose the characters before the cursor.