Skip to content

↑↓ moveEnter openEsc close

tmux keyboard shortcuts

tmux 3.5 · 31 shortcuts · checked Nov 2026 · Source: tmux project docs

tmux is a terminal multiplexer: windows, split panes and sessions that keep running after you disconnect. Every command starts with the prefix, Ctrl+B by default, followed by a key.

Most used tmux keyboard shortcuts

The tmux shortcuts worth learning first. The full list follows, grouped by task.

31 shortcuts

Small screen: your system's keys only. Pick another system in the tabs above.

Sessions

5 shortcuts
ActionMacLinux
Detach from the sessionCtrlB,DCtrlB,D
Choose a session from a listCtrlB,SCtrlB,S
Rename the sessionCtrlB,Shift4CtrlB,Shift4
Next sessionCtrlB,Shift0CtrlB,Shift0
Previous sessionCtrlB,Shift9CtrlB,Shift9

Windows

8 shortcuts
ActionMacLinux
Create a new windowCtrlB,CCtrlB,C
Next windowCtrlB,NCtrlB,N
Previous windowCtrlB,PCtrlB,P
Go to window 0 to 9CtrlB,0CtrlB,0
Last used windowCtrlB,LCtrlB,L
Choose a window from a listCtrlB,WCtrlB,W
Rename the windowCtrlB,,CtrlB,,
Kill the windowCtrlB,Shift7CtrlB,Shift7

Panes

13 shortcuts
ActionMacLinux
Split the pane left and rightCtrlB,Shift5CtrlB,Shift5
Split the pane top and bottomCtrlB,Shift'CtrlB,Shift'
Move to the pane in a directionCtrlB,←orCtrlB,→orCtrlB,↑orCtrlB,↓CtrlB,←orCtrlB,→orCtrlB,↑orCtrlB,↓
Next paneCtrlB,OCtrlB,O
Last used paneCtrlB,;CtrlB,;
Zoom or unzoom the paneCtrlB,ZCtrlB,Z
Kill the paneCtrlB,XCtrlB,X
Show pane numbersCtrlB,QCtrlB,Q
Swap with the next paneCtrlB,Shift]CtrlB,Shift]
Swap with the previous paneCtrlB,Shift[CtrlB,Shift[
Move the pane to its own windowCtrlB,Shift1CtrlB,Shift1
Cycle pane layoutsCtrlB,SpaceCtrlB,Space
Resize the paneCtrlB,Ctrl↑orCtrlB,Ctrl↓orCtrlB,Ctrl←orCtrlB,Ctrl→CtrlB,Ctrl↑orCtrlB,Ctrl↓orCtrlB,Ctrl←orCtrlB,Ctrl→
ActionMacLinux
Enter copy mode (scroll back)CtrlB,[CtrlB,[
Paste the copy bufferCtrlB,]CtrlB,]
Open the tmux command promptCtrlB,Shift;CtrlB,Shift;
List key bindingsCtrlB,Shift/CtrlB,Shift/
Show a big clockCtrlB,TCtrlB,T
Show the key map: which keys tmux uses mostDarker orange = used by more shortcuts

How the tmux prefix works

Press Ctrl+B, let go, then press the command key. Ctrl+B then C means: hold Ctrl and press B, release both, then press C.

Change the prefix
Many people use Ctrl+A. Add set -g prefix C-a, unbind C-b and bind C-a send-prefix to ~/.tmux.conf, then reload it.
List every binding
Ctrl+B then ? shows all key bindings in the current tmux, including your own.

tmux session shortcuts: new, detach, switch and kill

New session
From a shell, tmux new -s name starts a named session. Inside tmux, prefix then :new and Enter starts another.
Kill a session
Run tmux kill-session -t name, or prefix then :kill-session inside it. Closing its last window ends it too.

Create and switch windows in tmux

Split panes, switch panes and close them in tmux

Scroll up and copy text in tmux

Scroll up
Prefix then [ enters copy mode: scroll with the arrow keys or Page Up, and press q to leave. Add set -g mouse on to ~/.tmux.conf to scroll with the mouse wheel.

Change the tmux prefix and key bindings

Use Ctrl+A as the prefix
Add set -g prefix C-a, unbind C-b and bind C-a send-prefix to ~/.tmux.conf, then reload it with tmux source-file ~/.tmux.conf.
List every binding
Prefix then ? shows all keys inside tmux, and tmux list-keys prints them in a shell.

tmux keyboard shortcuts: questions

Why are tmux shortcuts not working?
Press the prefix (Ctrl+B), let go, then press the key; holding Ctrl for both does something else. A custom ~/.tmux.conf may have changed the prefix: tmux show -g prefix shows it. On a Mac, keys with Option need the terminal set to use Option as Meta.

These are the default key bindings in tmux 3.5, as published by tmux project. Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.

Single-system lists: tmux keyboard shortcuts for Mac, tmux keyboard shortcuts for Linux.

Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.