Reference · Shortcuts · Printable

The Ultimate tmux Cheat Sheet & Shortcuts

A comprehensive visual guide to all tmux shortcuts and commands. Organized by category for speed, every key binding uses the default Ctrl+b prefix.

Ctrl + b

The prefix key activates tmux's command mode. Press Ctrl+b, release, then press the shortcut key. Most shortcuts listed here require the prefix first. To change to Ctrl+a: add unbind C-b and set -g prefix C-a to your ~/.tmux.conf.

📁 Sessions

New session
tmux
New named session
tmux new -s [name]
List all sessions
tmux ls
Attach last session
tmux a
Attach named session
tmux a -t [name]
Detach from session
Prefix d
Detach other clients
Prefix D
Previous session
Prefix (
Next session
Prefix )
Rename current session
Prefix $
Interactive session list
Prefix s
Kill specific session
tmux kill-session -t [name]
Kill ALL sessions (Server)
tmux kill-server

🪟 Windows

Create window
Prefix c
Rename window
Prefix ,
Next window
Prefix n
Previous window
Prefix p
Last (toggled) window
Prefix l
Select by number
Prefix 0-9
Window list (interactive)
Prefix w
Find window
Prefix f
Swap windows
tmux swap-window -s 2 -t 1
Renumber windows
tmux move-window -r
Kill window
Prefix &
Move window
Prefix .

⬛ Panes

Split horizontally
Prefix %
Split vertically
Prefix "
Toggle last active pane
Prefix ;
Navigate panes
Prefix ↑↓←→
Select next pane
Prefix o
Select pane by number
Prefix q 0-9
Show pane numbers
Prefix q
Toggle zoom (fullscreen)
Prefix z
Kill pane
Prefix x
Swap pane (forward)
Prefix }
Swap pane (backward)
Prefix {
Break pane to window
Prefix !
Resize pane (hold keys)
Prefix Ctrl+↑↓←→
Synchronize panes
setw synchronize-panes
Cycle pane layouts
Prefix Space

📋 Copy Mode (Scroll)

Enter copy mode (Scroll Up)
Prefix [
Scroll Up / Down
PgUp / PgDn
Paste buffer
Prefix ]
List buffers
Prefix =
Navigate (vi)
h j k l
Line Start / End
0 $
Search forward / back
/ / ?
Next / prev match
n / N
Move word (vi)
w / b
Jump Top / Bottom
g G
Page Up / Down
Ctrl+b Ctrl+f
Start selection
v / Space
Copy selection
y / Enter
Exit copy mode
q Esc

⌨️ Command Mode

Open command prompt
Prefix :
List all key bindings
Prefix ?
Reload config
Prefix : source ~/.tmux.conf
tmux version
tmux -V
Server info
tmux info
Show all options
tmux show-options -g

🔧 Miscellaneous

Enter command mode
Prefix :
List key bindings
Prefix ?
Reload config
Prefix : source ~/.tmux.conf
Set option (all sessions)
tmux set-option -g OPTION
Set option (all windows)
tmux set-window-option -g OPTION
Enable mouse mode
set -g mouse on
Refresh client
Prefix r
Clock mode
Prefix t
Detach other clients
Prefix D
Suspend client
Prefix Ctrl+z
Send prefix to nested tmux
Prefix Prefix

Need full command explanations with flags and examples?

The /commands/ page goes deep: every command documented with all options, use cases, and copy-ready examples.

Full Command Reference → Configure tmux →