Mac Terminal Keyboard Shortcuts: A Practical Guide

Learn essential mac terminal keyboard shortcuts to boost accuracy, speed, and focus. This practical guide covers editing modes, navigation, shell config, and advanced tips for macOS Terminal and iTerm2.

Shortcuts Lib
Shortcuts Lib Team
ยท5 min read
Mac Terminal Shortcuts - Shortcuts Lib
Photo by sebageevia Pixabay

Quick start: essential mac terminal keyboard shortcuts

Mastering a few core shortcuts in the macOS Terminal dramatically speeds up routine tasks. Start with cursor movement, line editing, and clipboard interaction: move to line start with Ctrl+A, to line end with Ctrl+E, cut to the start with Ctrl+U, or delete to the end with Ctrl+K. For search, Ctrl+R recalls history entries. These emacs-style bindings are the baseline for most shells on macOS. If you prefer word-wise navigation, use Option+Left/Right when your Terminal sends the proper escape sequences. In practice, practicing these will reduce context switching between the keyboard and mouse significantly.

Bash
# Emacs-style bindings (bash/readline) bind -x '

beginning-of-line

end-of-line

\C-a: beginning-of-line

\C-e: end-of-line

\C-k: kill-line

\C-u: unix-line-discard

"": delete-char

Related Articles