DEV Community

Bogdan Varlamov
Bogdan Varlamov

Posted on

macOS Terminal Hotkeys: A Quick Guide

Image description

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.

Top comments (1)

Collapse
 
yasuperflash profile image
Olya

Well I've saved it, waiting for more useful info