1. Home
  2. Keyboard Shortcuts
  3. tmux
Terminal & CLI

tmux Keyboard Shortcuts

We collected 208 keyboard shortcuts for tmux so you can multiplex terminal sessions faster

tmux keyboard shortcuts

tmux is a terminal & CLI application developed by tmux Contributors. It lets users multiplex terminal sessions with a professional-grade toolset.

For tmux users, mastering keyboard shortcuts is one of the fastest ways to boost productivity. Quick access to tools and commands keeps the creative flow unbroken.

Since tmux supports macOS and Linux, this shortcuts reference is designed to help users on every supported operating system get up to speed quickly.

macOSLinux 208 SHORTCUTS 19 CATEGORIES
VISIT TMUX OFFICIAL WEBSITE ↗
SHOW SHORTCUTS FOR:
Jump to Section (19 sections)

Key Bindings66 SHORTCUTS

Send the prefix key (C-b) through to the application. Ctrl+BCtrl+B
Rotate the panes in the current window forwards. Ctrl+OCtrl+O
Suspend the tmux client. Ctrl+ZCtrl+Z
Break the current pane out of the window. Ctrl+B+!Ctrl+B+!
Split the current pane into two, top and bottom. Ctrl+B+"Ctrl+B+"
List all paste buffers. Ctrl+B+#Ctrl+B+#
Rename the current session. Ctrl+B+$Ctrl+B+$
Split the current pane into two, left and right. Ctrl+B+%Ctrl+B+%
Kill the current window. Ctrl+B+&Ctrl+B+&
Prompt for a window index to select. Ctrl+B+'Ctrl+B+'
Switch the attached client to the previous session. Ctrl+B+(Ctrl+B+(
Switch the attached client to the next session. Ctrl+B+)Ctrl+B+)
Rename the current window. Ctrl+B+,Ctrl+B+,
Delete the most recently copied buffer of text. Ctrl+B+-Ctrl+B+-
Prompt for an index to move the current window. Ctrl+B+.Ctrl+B+.
Select windows 0 to 9. Ctrl+B+0-9Ctrl+B+0-9
Enter the tmux command prompt. Ctrl+B+:Ctrl+B+:
Move to the previously active pane. Ctrl+B+;Ctrl+B+;
Choose which buffer to paste interactively from a list. Ctrl+B+=Ctrl+B+=
List all key bindings. Ctrl+B+?Ctrl+B+?
Choose a client to detach. / Detach the current client. Ctrl+B+DCtrl+B+D
Switch the attached client back to the last session. / Move to the previously selected window. Ctrl+B+LCtrl+B+L
Enter copy mode to copy text or view the history. Ctrl+B+[Ctrl+B+[
Paste the most recently copied buffer of text. Ctrl+B+]Ctrl+B+]
Create a new window. Ctrl+B+CCtrl+B+C
Prompt to search for text in open windows. Ctrl+B+FCtrl+B+F
Display some information about the current window. Ctrl+B+ICtrl+B+I
Mark the current pane (see select-pane -m). / Clear the marked pane. Ctrl+B+MCtrl+B+M
Change to the next window. Ctrl+B+NCtrl+B+N
Select the next pane in the current window. Ctrl+B+OCtrl+B+O
Change to the previous window. Ctrl+B+PCtrl+B+P
Briefly display pane indexes. Ctrl+B+QCtrl+B+Q
Force redraw of the attached client. Ctrl+B+RCtrl+B+R
Select a new session for the attached client interactively. Ctrl+B+SCtrl+B+S
Show the time. Ctrl+B+TCtrl+B+T
Choose the current window interactively. Ctrl+B+WCtrl+B+W
Kill the current pane. Ctrl+B+XCtrl+B+X
Toggle zoom state of the current pane. Ctrl+B+ZCtrl+B+Z
Swap the current pane with the previous pane. Ctrl+B+{Ctrl+B+{
Swap the current pane with the next pane. Ctrl+B+}Ctrl+B+}
Show previous messages from tmux, if any. Ctrl+B+~Ctrl+B+~
Enter copy mode and scroll one page up. Ctrl+B+PageUpCtrl+B+PageUp
Change to the pane above, below, to the left, or to the right of the current pane. Ctrl+B+UpCtrl+B+Up
Change to the pane above, below, to the left, or to the right of the current pane. Ctrl+B+DownCtrl+B+Down
Change to the pane above, below, to the left, or to the right of the current pane. Ctrl+B+LeftCtrl+B+Left
Change to the pane above, below, to the left, or to the right of the current pane. Ctrl+B+RightCtrl+B+Right
Arrange panes in one of the seven preset layouts: even-horizontal, even-vertical, main-horizontal, main-horizontal-mirrored, main-vertical, main-vertical-mirrored, or tiled. Ctrl+B+M-1Ctrl+B+M-1
Arrange panes in one of the seven preset layouts: even-horizontal, even-vertical, main-horizontal, main-horizontal-mirrored, main-vertical, main-vertical-mirrored, or tiled. Ctrl+B+M-2Ctrl+B+M-2
Arrange panes in one of the seven preset layouts: even-horizontal, even-vertical, main-horizontal, main-horizontal-mirrored, main-vertical, main-vertical-mirrored, or tiled. Ctrl+B+M-3Ctrl+B+M-3
Arrange panes in one of the seven preset layouts: even-horizontal, even-vertical, main-horizontal, main-horizontal-mirrored, main-vertical, main-vertical-mirrored, or tiled. Ctrl+B+M-4Ctrl+B+M-4
Arrange panes in one of the seven preset layouts: even-horizontal, even-vertical, main-horizontal, main-horizontal-mirrored, main-vertical, main-vertical-mirrored, or tiled. Ctrl+B+M-5Ctrl+B+M-5
Arrange panes in one of the seven preset layouts: even-horizontal, even-vertical, main-horizontal, main-horizontal-mirrored, main-vertical, main-vertical-mirrored, or tiled. Ctrl+B+M-6Ctrl+B+M-6
Arrange panes in one of the seven preset layouts: even-horizontal, even-vertical, main-horizontal, main-horizontal-mirrored, main-vertical, main-vertical-mirrored, or tiled. Ctrl+B+M-7Ctrl+B+M-7
Arrange the current window in the next preset layout. Ctrl+B+SpaceCtrl+B+Space
Move to the next window with a bell or activity marker. Ctrl+B+M-nCtrl+B+M-n
Rotate the panes in the current window backwards. Ctrl+B+M-oCtrl+B+M-o
Move to the previous window with a bell or activity marker. Ctrl+B+M-pCtrl+B+M-p
Resize the current pane in steps of one cell. Ctrl+B+C-UpCtrl+B+C-Up
Resize the current pane in steps of one cell. Ctrl+B+C-DownCtrl+B+C-Down
Resize the current pane in steps of one cell. Ctrl+B+C-LeftCtrl+B+C-Left
Resize the current pane in steps of one cell. Ctrl+B+C-RightCtrl+B+C-Right
Resize the current pane in steps of five cells. Ctrl+B+M-UpCtrl+B+M-Up
Resize the current pane in steps of five cells. Ctrl+B+M-DownCtrl+B+M-Down
Resize the current pane in steps of five cells. Ctrl+B+M-LeftCtrl+B+M-Left
Resize the current pane in steps of five cells. Ctrl+B+M-RightCtrl+B+M-Right
Pipe to pane Ctrl+PCtrl+P

General1 SHORTCUT

Terminate command sequence ;;

Basic Commands2 SHORTCUTS

New session, detach, split window and attach ;;
Source file RR

Pane Navigation4 SHORTCUTS

Resize pane up Ctrl+UpCtrl+Up
Resize pane down Ctrl+DownCtrl+Down
Resize pane left Ctrl+LeftCtrl+Left
Resize pane right Ctrl+RightCtrl+Right

Copy Mode4 SHORTCUTS

Enter copy mode [[
Paste buffer ]]
Enter copy mode and scroll up one page PageUpPageUp
Enter copy mode and scroll down one page PageDownPageDown

Copy Mode - Emacs32 SHORTCUTS

Move the cursor back to the indentation Opt+MAlt+M
Begin selection Ctrl+SpaceCtrl+Space
Cancel copy mode EscEsc
Clear the current selection Ctrl+GCtrl+G
Move the cursor down DownDown
Move the cursor left LeftLeft
Move the cursor right RightRight
Move the cursor up UpUp
Moves the cursor to the vertical centre of the pane Ctrl+LCtrl+L
Moves the cursor to the horizontal centre of the pane Opt+LAlt+L
Move the cursor to the end of the line Ctrl+ECtrl+E
Scroll down by half a page Opt+DownAlt+Down
Scroll up by half a page Opt+UpAlt+Up
Scroll to the bottom of the history Opt+>Alt+>
Scroll to the top of the history Opt+<Alt+<
Move to the next word Opt+FAlt+F
Move to the previous word Opt+BAlt+B
Repeat the last jump ;;
Jump backwards to the specified text / Jump forward to the specified text FF
Repeat the last jump in the reverse direction (forward becomes backward and backward becomes forward). ,,
Move to the next matching bracket Ctrl+Opt+FCtrl+Alt+F
Move to the previous matching bracket Ctrl+Opt+BCtrl+Alt+B
Move to the next paragraph Opt+}Alt+}
Move to the previous paragraph Opt+{Alt+{
Move to the middle line Opt+RAlt+R
Scroll down by one page PageDownPageDown
Scroll up by one page PageUpPageUp
Refresh the content from the pane RR
Repeat the last search NN
Search backwards incrementally for the specified text. Ctrl+RCtrl+R
Scroll up Ctrl+UpCtrl+Up
Scroll down Ctrl+DownCtrl+Down
The BuildBox Macropad Puts Keyboard Shortcuts at Your Fingertips! LEARN MORE →

Copy Mode - Vi34 SHORTCUTS

Append the selection to the top paste buffer and exit copy mode AA
Move the cursor back to the indentation ^^
Begin selection SpaceSpace
Move to the bottom line / Move the cursor right LL
Cancel copy mode QQ
Clear the current selection EscEsc
Move the cursor down JJ
Move the cursor left HH
Move the cursor up KK
Moves the cursor to the end of the line $$
Move to a specific line ::
Scroll down by half a page Ctrl+DCtrl+D
Scroll up by half a page Ctrl+UCtrl+U
Scroll to the bottom of the history / Scroll to the top of the history GG
Jump again ;;
Jump backwards to the specified text / Jump forward to the specified text FF
Repeat the last jump in the reverse direction (forward becomes backward and backward becomes forward). ,,
Jump backwards, but one character less, placing the cursor on the character after the target TT
Jump to the last mark M+XM+X
Move to the middle line MM
Move to the next matching bracket %%
Move to the next paragraph }}
Move to the previous paragraph {{
Move to the previous word BB
Move to the next word WW
Move to the end of the next word EE
Repeat the last search NN
Search backwards for the specified text ??
Scroll down by one page Ctrl+FCtrl+F
Scroll up by one page Ctrl+BCtrl+B
Refresh the content from the pane RR
Toggle rectangle selection mode VV
Scroll down Ctrl+ECtrl+E
Scroll up Ctrl+YCtrl+Y

Copy Mode - Selection1 SHORTCUT

Copy the current selection and exit copy mode EnterEnter

Text Search (vi)2 SHORTCUTS

Search forward for the specified text //
Repeat the previous search in the reverse direction NN

Text Search (emacs)3 SHORTCUTS

Search forward incrementally for the specified text Ctrl+SCtrl+S
Repeat the previous search in the reverse direction NN
Repeat the previous search in the reverse direction Ctrl+RCtrl+R

Selection (vi)1 SHORTCUT

Select the current line VV

Mark Line (vi/emacs)1 SHORTCUT

Mark the current line XX

Cursor Movement (vi/emacs)1 SHORTCUT

Move the cursor to the start of the line 00

Indicator Toggle (vi/emacs)1 SHORTCUT

Toggle the visibility of the position indicator in the top right PP

Move to top line (vi/emacs)1 SHORTCUT

Move to the top line HH

Choose Client - Client Mode17 SHORTCUTS

Choose selected client EnterEnter
Select previous client UpUp
Select next client DownDown
Search by name Ctrl+SCtrl+S
Repeat last search forwards / Repeat last search backwards NN
Toggle if client is tagged / Tag no clients TT
Tag all clients Ctrl+TCtrl+T
Detach selected client / Detach tagged clients DD
Detach and HUP selected client / Detach and HUP tagged clients XX
Suspend selected client / Suspend tagged clients ZZ
Enter a format to filter items FF
Change sort order OO
Reverse sort order RR
Toggle preview VV
Display help F1F1
Display help Ctrl+HCtrl+H
Exit mode QQ

Choose Tree - Tree Mode19 SHORTCUTS

Choose selected item EnterEnter
Select previous item UpUp
Select next item DownDown
Collapse item LeftLeft
Expand item RightRight
Open selected item SpaceSpace
Copy item CC
Paste PP
Delete item / Detach client DD
Detach and HUP client XX
Swap the selected item with the one above S+UpS+Up
Swap the selected item with the one below S+DownS+Down
Enter a format to filter items FF
Change sort order OO
Reverse sort order RR
Toggle preview VV
Display help F1F1
Display help Ctrl+HCtrl+H
Exit mode QQ

Buffer Mode11 SHORTCUTS

Repeat last search forwards / Repeat last search backwards N/AN
Toggle if buffer is tagged / Tag no buffers N/AT
Paste selected buffer / Paste tagged buffers N/AP
Paste tagged buffers / Delete selected buffer N/AD
Delete tagged buffers / Open the buffer in an editor N/AE
Enter a format to filter items N/AF
Change sort order N/AO
Reverse sort order N/AR
Toggle preview N/AV
Display help N/ACtrl+H
Exit mode N/AQ

Session Management and Navigation7 SHORTCUTS

Create a new window Ctrl+B+CCtrl+B+C
Select window 0 Ctrl+B+0Ctrl+B+0
Select window 1 Ctrl+B+1Ctrl+B+1
Select the next window Ctrl+B+NCtrl+B+N
Select the previous window Ctrl+B+PCtrl+B+P
Detach the session Ctrl+B+DCtrl+B+D
List the current key bindings Ctrl+B+?Ctrl+B+?

Noticed errors or keyboard shortcuts that don't work? Please let us know about them here →

The BuildBox Macropad Unlocks Thousands of Keyboard Shortcuts For Any App

The BuildBox Macropad
Available early December

That's why the BuildBox Macropad is the Ultimate Shortcut Machine. One device with infinite shortcuts available at your fingertips, plus a HUGE display showing what each key does, and a magnet-powered zero-friction scroll wheel that moves through documents, video, audio and graphic editing apps like butter!

Enter your Email to get your hands on a launch batch BuildBox (limited: 200 available):

Keyboard Shortcuts for Similar Applications