Super Shortcuts

iTerm2 keyboard shortcuts for Mac

55 shortcuts · Updated

These are the default iTerm2 keyboard shortcuts on macOS, curated from the official iTerm2 documentation. The ones worth learning first are the split-pane pair - Cmd D splits vertically, Cmd Shift D horizontally - plus marks, paste history, and Open Quickly. The standard shell line-editing keys work in it too, so those are included at the end.

55 shortcuts

Split panes9

ShortcutAction
Command DSplit the pane vertically (side by side)
Command Shift DSplit the pane horizontally (one above the other)
Command Option Left ArrowFocus the pane to the left
Command Option Right ArrowFocus the pane to the right
Command Option Up ArrowFocus the pane above
Command Option Down ArrowFocus the pane below
Command ]Focus the next pane in order of use
Command [Focus the previous pane
Command Shift ReturnMaximize the current pane (press again to restore)

Tabs & windows9

ShortcutAction
Command TNew tab
Command NNew window
Command WClose the current session
Command ZUndo closing a session (within a few seconds)
Command }Go to the next tab
Command {Go to the previous tab
Command 1Go to tab 1 (Cmd 2 through 9 for the others)
Command Option 1Go to window 1 (works with other numbers too)
Command ReturnToggle full screen

Search & navigation7

ShortcutAction
Command FFind in the current session
Command GFind the next match
Command Shift GFind the previous match
TabExtend the find match right by one word (while searching)
Shift TabExtend the find match left by one word (while searching)
Command Shift OOpen Quickly - search sessions by name, host, directory, or command
Command /Find the cursor (highlights its position)

Marks & history9

ShortcutAction
Command Shift MMark the current location in the session
Command Shift JJump back to the mark
Command Shift Up ArrowJump to the previous mark
Command Shift Down ArrowJump to the next mark
Command ;Open the autocomplete window
Command Shift ;Open the command history popup (with shell integration)
Command Option /Open the recent directories popup (with shell integration)
Command Shift HOpen the paste history
Command Option BInstant replay - step back through what was on screen (Esc to exit)

Session & display8

ShortcutAction
Command KClear the scrollback buffer
Command IEdit the current session's settings
Command UToggle window transparency
Command Shift EShow timestamps for each line
Command =Make the text bigger
Command -Make the text smaller
Command 0Restore the default text size
Command ,Open Settings

Command-line editing (shell defaults)10

ShortcutAction
Control AMove to the beginning of the line
Control EMove to the end of the line
Control UDelete from the cursor to the start of the line
Control KDelete from the cursor to the end of the line
Control WDelete the word before the cursor
Control YPaste back the last text you deleted
Control RSearch your shell history as you type
Control LClear the screen
Control CCancel the current command
Control DExit the shell (on an empty line)

Mouse3

ShortcutAction
Command ClickOpen the URL or file under the pointer
Shift ClickExtend the current selection
Command Option DragMake a rectangular selection

Curated from the official iTerm2 official documentation. Defaults only - shortcuts you've remapped will differ.

Frequently asked questions

How do I customize keyboard shortcuts in iTerm2?

Open Settings with ⌘, and go to Keys → Key Bindings for global shortcuts, or Profiles → Keys for per-profile ones. You can remap almost anything, including sending escape sequences or running actions on a keypress.

Which iTerm2 shortcuts should I learn first?

The split-pane pair: ⌘D splits vertically and ⌘⇧D horizontally, with ⌘⌥ plus an arrow key to move between panes. After that, ⌘⇧H (paste history) and ⌘⇧O (Open Quickly) are the biggest daily time-savers.

What are marks in iTerm2 and how do I use them?

A mark is a saved location in your scrollback. Press ⌘⇧M to set one and ⌘⇧J to jump back to it. With shell integration installed, iTerm2 marks every prompt automatically, and ⌘⇧↑ / ⌘⇧↓ hop between commands.

More Mac shortcut guides