[tmux.app]
tmux 3.8

Cheat sheet · tmux 3.8 · printable

tmux cheat sheet: every shortcut and key binding

Almost every tmux shortcut is the prefix key, Ctrl+b by default, followed by one more key: press Ctrl+b, let go, then press the key. Below are the 20 shortcuts you will use most, all 93 default bindings in tmux 3.8, the copy mode keys and the commands you type in your shell.

Your prefix

Changed your prefix? Pick it and every shortcut on this page updates. How to change it.

Updated Tested on tmux 3.810 min read

On this page
  1. The 20 tmux keyboard shortcuts you will use most
  2. Commands to type in your shell
  3. Keyboard map of every prefix key
  4. All 93 default key bindings
  5. Session shortcuts
  6. Window shortcuts
  7. Pane shortcuts
  8. Floating pane shortcuts new in 3.7 and 3.8
  9. Copy mode: scroll, search and copy
  10. Command prompt, help and display keys
  11. Mouse shortcuts and nested tmux
  12. New shortcuts since tmux 3.4
  13. Change the prefix key
  14. Copy to the system clipboard
  15. tmux cheat sheet PDF
  16. Frequently asked questions
  17. Where to go next

The 20 tmux keyboard shortcuts you will use most

Learn these first. They cover sessions, windows, panes and scrolling, which is most of what anyone does in tmux. The colors match the keyboard map and tables further down.

Sessions

  • Ctrl+b dDetach. The session keeps running; tmux attach brings it back.
  • Ctrl+b sPick a session from a tree with previews
  • Ctrl+b $Rename the session
  • Ctrl+b Shift+TabSession switcher: type to filter new in 3.8

Windows (tabs)

  • Ctrl+b cNew window
  • Ctrl+b n Ctrl+b pNext / previous window
  • Ctrl+b 0Go to window 0, and so on up to 9
  • Ctrl+b ,Rename the window
  • Ctrl+b wPick any window in any session
  • Ctrl+b &Close the window (asks first)

Panes (splits)

  • Ctrl+b %Split left and right (side by side)
  • Ctrl+b "Split top and bottom (stacked)
  • Ctrl+b ←Move to the pane on the left; any arrow works
  • Ctrl+b zZoom the pane to full screen, press again to restore
  • Ctrl+b xClose the pane (asks first)
  • Ctrl+b Ctrl+←Resize by one cell; hold Ctrl and keep tapping arrows

Scroll, copy & help

  • Ctrl+b [Scroll back (copy mode). q leaves.
  • Ctrl+b ]Paste what you copied
  • Ctrl+b :Type any tmux command
  • Ctrl+b ?List every key binding

The mouse is on by default since tmux 3.8, so you can also click panes and windows, drag borders and scroll with the wheel. On 3.4 (Ubuntu 24.04) or older, add set -g mouse on to ~/.tmux.conf.

Watch: the 15 tmux shortcuts you'll actually use, shown live. The full reference is below.

Commands to type in your shell

Starting, finding and ending sessions happens outside tmux, in your normal shell. These are the one-liners people look up most. Every command also has a long form and a short alias, listed on the tmux commands page.

CommandWhat it does
tmuxStart a new, unnamed session (numbered 0, 1, 2…)
tmux new -s workStart a session named work
tmux lsList sessions (no server running means there are none)
tmux attachAttach to the most recent session (tmux a works too)
tmux attach -t workAttach to the session named work
tmux new -A -s workAttach to work if it exists, otherwise create it
tmux rename-session -t work devRename a session from the shell
tmux kill-session -t workEnd one session and everything in it
tmux kill-session -aEnd every session except the current one
tmux kill-serverEnd all sessions and exit tmux completely
tmux source ~/.tmux.confReload your config without restarting
tmux list-keys -NPrint every key binding with a note
tmux -VShow the tmux version you have installed

More detail on each of these, including what to do when attach says sessions should be nested with care, is in the sessions guide.

Keyboard map of every prefix key

Hover, tap or tab to a key to see what it does after the prefix. Colors show the group; a dot in the corner marks a binding added in tmux 3.5 or later. Gray keys do nothing by default, so they are free for your own bindings.

Sessions & clientsWindowsPanes & layoutsFloating panesCopy mode & buffersPrompts, help & displayUnbound
`
^
_
+
Q
W
e
R
Yy
Uu
I
O
P
|\
Aa
S
F
G
Hh
Jj
Kk
Z
X
Vv
Bb
N
Press or hover a keyEvery coloured key does something after the prefix Ctrl+b. Shifted bindings sit on the top half of a key.

All 93 default key bindings

This is the complete prefix table of tmux 3.8, generated from a real build with no config (tmux list-keys), grouped by what each key controls. The third column is the tmux command the key runs, which is also what you would put in your own config. repeatable keys can be pressed again without the prefix for a moment (half a second, the repeat-time default).

Session shortcuts

Sessions & clients 9

KeysActionCommand it runs
Ctrl+b $Rename current sessioncommand-prompt -I "#S" { rename-session "%%" }
Ctrl+b (Switch to previous clientswitch-client -p
Ctrl+b )Switch to next clientswitch-client -n
Ctrl+b DChoose and detach a client from a listchoose-client -Z
Ctrl+b LSwitch to the last clientswitch-client -l
Ctrl+b dDetach the current clientdetach-client
Ctrl+b sChoose a session from a listchoose-tree -Zs
Ctrl+b Shift+TabSwitch to a session new in 3.8new-pane -E -X …
Ctrl+b Ctrl+zSuspend the current clientsuspend-client

There is no default key that kills a session. Press Ctrl+b s, move to the session and press x (tmux asks y/n), or press Ctrl+b : and type kill-session. The Ctrl+b ( and Ctrl+b ) notes in tmux say "client" because they move your client to the previous or next session.

Window shortcuts

Windows 24

KeysActionCommand it runs
Ctrl+b TabSwitch to a window new in 3.8new-pane -E -X …
Ctrl+b &Kill current windowconfirm-before -p "kill-window #W? (y/n)" kill-window
Ctrl+b 'Prompt for window index to selectcommand-prompt -p index { select-window -t ":%%" }
Ctrl+b ,Rename current windowcommand-prompt -I "#W" { rename-window "%%" }
Ctrl+b .Move the current windowcommand-prompt { move-window -t "%%" }
Ctrl+b 0Select window 0select-window -t :=0
Ctrl+b 1Select window 1select-window -t :=1
Ctrl+b 2Select window 2select-window -t :=2
Ctrl+b 3Select window 3select-window -t :=3
Ctrl+b 4Select window 4select-window -t :=4
Ctrl+b 5Select window 5select-window -t :=5
Ctrl+b 6Select window 6select-window -t :=6
Ctrl+b 7Select window 7select-window -t :=7
Ctrl+b 8Select window 8select-window -t :=8
Ctrl+b 9Select window 9select-window -t :=9
Ctrl+b <Display window menudisplay-menu -T …
Ctrl+b cCreate a new windownew-window
Ctrl+b fSearch for a panecommand-prompt { find-window -Z "%%" }
Ctrl+b lSelect the previously current windowlast-window
Ctrl+b nSelect the next windownext-window
Ctrl+b pSelect the previous windowprevious-window
Ctrl+b wChoose a window from a listchoose-tree -Zw
Ctrl+b Alt+nSelect the next window with an alertnext-window -a
Ctrl+b Alt+pSelect the previous window with an alertprevious-window -a
Real screenshot · tmux 3.8Prefix Tab, new in tmux 3.8: type a few letters of a window name and press Enter. Prefix Shift+Tab does the same for sessions.
Prefix Tab, new in tmux 3.8: type a few letters of a window name and press Enter. Prefix Shift+Tab does the same for sessions.
How this was captured

Captured 2026-10-28 17:54 UTC from a real xterm window running tmux 3.8 on Ubuntu 24.04. Nothing is mocked up. The commands that set up the screen:

tmux new-session -d -s work -n editor -x 110 -y 29
tmux new-window -d -t work -n tests
tmux new-window -d -t work -n logs
tmux new-session -d -s api -n server
tmux send-keys -t work 'clear; echo '"'"'prefix Tab: the 3.8 window switcher'"'"'' Enter
(typed in the terminal) C-b Tab

Windows are the tabs in the status line. Ctrl+b Tab and Ctrl+b Shift+Tab are new in 3.8; on older versions use Ctrl+b w and Ctrl+b s. Creating, moving and renumbering windows is covered in panes and windows.

Pane shortcuts

Panes & layouts 35

KeysActionCommand it runs
Ctrl+b SpaceSelect next layoutnext-layout
Ctrl+b !Break pane to a new windowbreak-pane
Ctrl+b "Split window verticallysplit-window
Ctrl+b %Split window horizontallysplit-window -h
Ctrl+b ;Move to the previously active panelast-pane
Ctrl+b ESpread panes out evenlyselect-layout -E
Ctrl+b MClear the marked paneselect-pane -M
Ctrl+b mToggle the marked paneselect-pane -m
Ctrl+b oSelect the next paneselect-pane -t :.+
Ctrl+b qDisplay pane numbersdisplay-panes
Ctrl+b xKill the active paneconfirm-before -p "kill-pane #P? (y/n)" kill-pane
Ctrl+b zZoom the active paneresize-pane -Z
Ctrl+b {Swap the active pane with the pane aboveswap-pane -U
Ctrl+b }Swap the active pane with the pane belowswap-pane -D
Ctrl+b ↑Select the pane above the active pane repeatableselect-pane -U
Ctrl+b ↓Select the pane below the active pane repeatableselect-pane -D
Ctrl+b ←Select the pane to the left of the active pane repeatableselect-pane -L
Ctrl+b →Select the pane to the right of the active pane repeatableselect-pane -R
Ctrl+b Alt+1Set the even-horizontal layoutselect-layout even-horizontal
Ctrl+b Alt+2Set the even-vertical layoutselect-layout even-vertical
Ctrl+b Alt+3Set the main-horizontal layoutselect-layout main-horizontal
Ctrl+b Alt+4Set the main-vertical layoutselect-layout main-vertical
Ctrl+b Alt+5Select the tiled layoutselect-layout tiled
Ctrl+b Alt+6Set the main-horizontal-mirrored layout new in 3.5select-layout main-horizontal-mirrored
Ctrl+b Alt+7Set the main-vertical-mirrored layout new in 3.5select-layout main-vertical-mirrored
Ctrl+b Alt+oRotate through the panes in reverserotate-window -D
Ctrl+b Alt+↑Resize the pane up by 5 repeatableif-shell -F …
Ctrl+b Alt+↓Resize the pane down by 5 repeatableresize-pane -D 5
Ctrl+b Alt+←Resize the pane left by 5 repeatableif-shell -F …
Ctrl+b Alt+→Resize the pane right by 5 repeatableresize-pane -R 5
Ctrl+b Ctrl+oRotate through the panesrotate-window
Ctrl+b Ctrl+↑Resize the pane up repeatableif-shell -F …
Ctrl+b Ctrl+↓Resize the pane down repeatableresize-pane -D --
Ctrl+b Ctrl+←Resize the pane left repeatableif-shell -F …
Ctrl+b Ctrl+→Resize the pane right repeatableresize-pane -R --

Alt layouts and resizing need your terminal to send Alt (Option on a Mac) as Meta; see the FAQ. Resizing, swapping, joining and synchronized panes are explained in the panes guide. Synchronize panes (typing into every pane of a window at once) has no default shortcut: press Ctrl+b : and run setw synchronize-panes, which toggles it on and off (more on synchronized panes).

Floating pane shortcuts new in 3.7 and 3.8

Floating panes 4

KeysActionCommand it runs
Ctrl+b *New floating pane new in 3.7new-pane
Ctrl+b @Toggle pane between floating and tiled new in 3.8if-shell -F "#{pane_floating_flag}" { join-pane } { break-pane -W }
Ctrl+b TChange the pane title new in 3.8command-prompt -I "#T" { select-pane -T "%%" }
Ctrl+b gMove a floating pane new in 3.8switch-client -T move

After Ctrl+b g: move a floating pane

Ctrl+b g switches to the move key table for one key press. These keys only act on a floating pane.

Then pressActionCommand it runs
↑ ↓ ← →Move to the top, bottom, left or right edge, centeredmove-pane -P top-centre …
1 2 3 4Move to the top-left, top-right, bottom-left or bottom-right cornermove-pane -P top-left …
Alt+↑ and other Alt arrowsResize to half the window and move to that edgeresize-pane -x "100%" -y "50%" ; move-pane …
Alt+1 to Alt+4Resize to a quarter of the window, in that cornerresize-pane -x "50%" -y "50%" ; move-pane …
0Fill the whole windowresize-pane -x "100%" -y "100%"
, .Menu of positions, or of positions and sizesdisplay-menu -T Move …

With the mouse, Ctrl+drag on a pane draws a new floating pane and Alt+drag moves one. Everything else about floating panes, including new-pane and modal panes, is in the floating panes guide.

Copy mode: scroll, search and copy

Copy mode & buffers 7

KeysActionCommand it runs
Ctrl+b #List all paste bufferslist-buffers
Ctrl+b -Delete the most recent paste bufferdelete-buffer
Ctrl+b =Choose a paste buffer from a listchoose-buffer -Z
Ctrl+b >Display pane menudisplay-menu -T …
Ctrl+b [Enter copy modecopy-mode
Ctrl+b ]Paste the most recent paste bufferpaste-buffer -p
Ctrl+b PgUpEnter copy mode and scroll upcopy-mode -u

Inside copy mode the keys are no longer prefixed. tmux has two sets, emacs and vi. It uses emacs keys by default, and switches to vi keys only if your $VISUAL or $EDITOR contains vi (tested on 3.8: EDITOR=vim gives mode-keys vi). To always get vi keys, add set -g mode-keys vi to ~/.tmux.conf.

Actionvi keysemacs keys (default)
Leave copy modeqq or Esc
Move the cursorh j k l or arrowsarrows
Page up / downCtrl+b Ctrl+fAlt+v Ctrl+v
Half a page up / downCtrl+u Ctrl+dAlt+↑ Alt+↓
Top / bottom of the historyg GAlt+< Alt+>
Start / end of the line0 $Ctrl+a Ctrl+e
Next / previous wordw bAlt+f Alt+b
Search down / up/ ?Ctrl+s Ctrl+r
Next / previous matchn Nn N
Start a selectionSpaceCtrl+Space
Rectangle selectionvR
Select the whole lineVnone
Copy the selection and leaveEnterAlt+w
Clear the selectionEscCtrl+g
Jump to a line number:g

In vi mode, v toggles a rectangle rather than starting a selection as it does in Vim. If you want Vim's v and y, bind them yourself:

~/.tmux.conf
set -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection-and-cancel

How to scroll with the mouse, search the scrollback and copy into the macOS, Windows or Linux clipboard is all on the scroll and copy mode page.

Command prompt, help and display keys

Prompts, help & display 14

KeysActionCommand it runs
Ctrl+b /Describe key bindingcommand-prompt -k -p key { list-keys -1N "%%" }
Ctrl+b :Prompt for a commandcommand-prompt
Ctrl+b ?List key bindingslist-keys -N
Ctrl+b CCustomize optionscustomize-mode -Z
Ctrl+b iDisplay window informationdisplay-message
Ctrl+b rRedraw the current clientrefresh-client
Ctrl+b tShow a clockclock-mode
Ctrl+b ~Show messagesshow-messages
Ctrl+b DeleteReset so the visible part of the window follows the cursor repeatablerefresh-client -c
Ctrl+b Ctrl+bSend the prefix keysend-prefix
Ctrl+b Shift+↑Move the visible part of the window up repeatablerefresh-client -U 10
Ctrl+b Shift+↓Move the visible part of the window down repeatablerefresh-client -D 10
Ctrl+b Shift+←Move the visible part of the window left repeatablerefresh-client -L 10
Ctrl+b Shift+→Move the visible part of the window right repeatablerefresh-client -R 10
Real screenshot · tmux 3.8tmux 3.8 list-keys view: C-b Tab Switch to a window, C-b Space Select next layout, and so on
What prefix ? shows in tmux 3.8: every key binding with a one-line note (list-keys -N in view mode). Press q to close it.
How this was captured

Captured 2026-10-28 18:05 UTC from a real xterm window running tmux 3.8 on Ubuntu 24.04. Nothing is mocked up. The commands that set up the screen:

# ~/.tmux.conf for this capture: set-hook -g client-attached 'list-keys -N'
tmux new-session -d -s work -n editor -x 110 -y 29
tmux send-keys -t work clear Enter
tmux attach -t work   # the hook opens list-keys -N, the same view as prefix ?

Ctrl+b : opens the command prompt at the bottom of the screen. Type any tmux command without the leading tmux, for example kill-session -t old or source ~/.tmux.conf, and press Enter; Tab completes command names. Ctrl+b / waits for one key and tells you what it does. Ctrl+b C opens customize mode, where you can browse and change every option and key binding.

Mouse shortcuts and nested tmux

tmux 3.8 turns the mouse on by default (mouse on). These are the default mouse actions; on older versions they work once you add set -g mouse on.

MouseActionCommand it runs
Click a paneMake it the active paneselect-pane -t =
Drag a pane borderResize the panes on either sideresize-pane -M
Wheel up on a paneEnter copy mode and scroll backcopy-mode -e
Drag over textSelect, and copy when you let gocopy-mode -M
Double / triple clickCopy a word / a whole lineselect-word / select-line
Middle clickPaste the newest bufferpaste-buffer -p
Click a window in the status lineSwitch to it (wheel over the status line cycles windows)switch-client -t =
Right clickPane menu, or window menu on the status linedisplay-menu …
Ctrl+dragDraw a new floating pane new in 3.8new-pane -M
Alt+drag a paneMove the panemove-pane -M

To select text with your terminal instead of tmux, hold Shift while you drag in most terminals (xterm, GNOME Terminal and Windows Terminal do this). To send the prefix to a tmux running inside tmux, for example on a server you reached over SSH, press it twice: Ctrl+b Ctrl+b runs send-prefix.

New shortcuts since tmux 3.4

Ubuntu 24.04 ships tmux 3.4 and Debian 13 ships 3.5a, so not every key on this page works everywhere. Run tmux -V to check. These are the default bindings added after 3.4:

KeysWhat it doesSince
Ctrl+b Alt+6 Ctrl+b Alt+7Mirrored main-horizontal and main-vertical layouts (main pane at the bottom or right)3.5
Ctrl+b *New floating pane3.7
Ctrl+b @Float a tiled pane, or tile a floating one3.8
Ctrl+b gMove or resize a floating pane with the next key3.8
Ctrl+b TSet the pane title3.8
Ctrl+b TabWindow switcher with fuzzy filtering3.8
Ctrl+b Shift+TabSession switcher with fuzzy filtering3.8

We compared tmux list-keys -T prefix on tmux 3.4 (85 bindings) and 3.8 (93 bindings); no default binding was removed. Copy mode gained a few keys too, such as r to refresh the view with new output in 3.8. Full release notes are on the releases page.

Change the prefix key

Quick answer

How do I change the tmux prefix to Ctrl+a?

~/.tmux.conf
set -g prefix C-a
unbind C-b
bind C-a send-prefix

Save the file, then run tmux source ~/.tmux.conf or start a new tmux server.

Ctrl+a is the GNU Screen prefix and the most common choice. The third line lets you press Ctrl+a twice to send a real Ctrl+a to the shell, where it moves to the start of the line. Popular alternatives are C-Space, which clashes with almost nothing, and C-s, which you may need to free with stty -ixon first because many terminals use it to pause output. To keep Ctrl+b working as well, set a second prefix with set -g prefix2 C-b instead of unbinding it.

Whatever you choose, use the switcher at the top of this page so every shortcut here shows your prefix. All other ways to bind and unbind keys are in the config guide, and the config generator writes these lines for you.

Copy to the system clipboard

When you copy in copy mode, tmux keeps the text in its own paste buffer (Ctrl+b ] pastes it) and, with the 3.8 default set-clipboard external, also sends it to your terminal with the OSC 52 escape sequence. Terminals that support OSC 52, such as iTerm2, kitty, WezTerm, Ghostty and Windows Terminal, then put it on your system clipboard, even over SSH. If that does not happen, the clipboard section of the copy mode guide has the fixes for macOS, Wayland, X11 and WSL. Seamless navigation between Vim splits and tmux panes is covered in Neovim and tmux.

tmux cheat sheet PDF

The PDF has every key on this page on two A4 landscape pages in light colors, so it prints well in black and white and fits on US Letter at 97% scale. It is generated from the same tmux 3.8 data as the tables above.

  • Page 1: shell one-liners, sessions, windows, floating panes, buffers and every pane key.
  • Page 2: copy mode in vi and emacs, prompt and help keys, the Ctrl+b g move keys, mouse actions, how to switch to Ctrl+a, and target syntax.

Download the PDF Open the print layout

"Print this page" prints the tables above without the menus, ads, video and keyboard map, using the prefix you picked. The PDF always shows the default Ctrl+b.

Frequently asked questions

What is the default prefix key in tmux?

The default prefix is Ctrl+b (written C-b in tmux). Press Ctrl and b together, release both, then press the command key. For example Ctrl+b then d detaches. Run tmux show -g prefix to see the prefix your setup uses.

How do I split a pane vertically and horizontally in tmux?

Press Ctrl+b then % to split side by side (left and right), and Ctrl+b then " to split top and bottom. From the shell, the same splits are tmux split-window -h and tmux split-window -v. tmux calls the side-by-side split "horizontal". See the panes guide.

How do I see all tmux shortcuts from inside tmux?

Press Ctrl+b then ?. tmux lists every binding with a short note; press / to search the list and q to close it. From the shell, run tmux list-keys -N, or tmux list-keys for every key table including copy mode.

How do I scroll up in tmux?

Press Ctrl+b then [ to enter copy mode, then use the arrow keys or PgUp and PgDn; press q to go back. Ctrl+b then PgUp enters copy mode and scrolls up in one step. In tmux 3.8 the mouse wheel also works, because the mouse is on by default. More in scroll and copy mode.

Are tmux shortcuts different on a Mac?

No. tmux uses the Ctrl key on macOS too, not Cmd. Shortcuts with Alt (written M-) need your terminal to send Option as Meta: in Terminal, turn on "Use Option as Meta key" in the profile's Keyboard settings; in iTerm2, set the Left Option key to "Esc+" under Profiles, Keys.

Is there a shortcut to kill a tmux session?

Not by default. Press Ctrl+b then s, highlight the session and press x, then y to confirm. You can also run tmux kill-session -t name, or add your own key, such as bind K confirm-before kill-session, to ~/.tmux.conf.

How do I exit tmux?

To leave tmux but keep everything running, detach with Ctrl+b then d; tmux attach brings you back. To close tmux for good, type exit in each pane (the session ends with its last pane) or run tmux kill-server to end every session at once.

Why does my tmux shortcut do nothing?

The most common reasons: you held Ctrl down while pressing the second key (release it first), your config changed the prefix, the binding is newer than your tmux (check tmux -V against the new shortcuts table), or your terminal or OS captures the key first. Troubleshooting covers each case.

Can I download the tmux cheat sheet as a PDF?

Yes. The tmux cheat sheet PDF is two A4 landscape pages with every default binding in tmux 3.8, copy mode keys and the common shell commands. There is also a plain-text version.

Where to go next

Keep learning

Something wrong or out of date on this page? Email hello@tmux.app and we will fix it.