DEV Community

Bogdan Varlamov
Bogdan Varlamov

Posted on

2 1 1 1 1

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.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (1)

Collapse
 
yasuperflash profile image
Olya

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

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs