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 dynamically updates to match your preferred prefix modifier.
Verified for tmux v3.6a · macOS Sonoma/Sequoia, Ubuntu 24.04 LTS, Windows WSL2
Currently displaying shortcuts with prefix: Ctrl+b. Click any option above to dynamically update the entire reference.
📁 Sessions
New named sessiontmux new -s [name]
Attach last sessiontmux a
Attach named sessiontmux a -t [name]
Detach from sessionCtrl+b d
Detach other clientsCtrl+b D
Rename current sessionCtrl+b $
Interactive session listCtrl+b s
Kill specific sessiontmux kill-session -t [name]
Kill ALL sessions (Server)tmux kill-server
🪟 Windows
Last (toggled) windowCtrl+b l
Select by numberCtrl+b 0-9
Window list (interactive)Ctrl+b w
Swap windowstmux swap-window -s 2 -t 1
Renumber windowstmux move-window -r
⬛ Panes
Split horizontallyCtrl+b %
Toggle last active paneCtrl+b ;
Navigate panesCtrl+b ↑↓←→
Select pane by numberCtrl+b q 0-9
Show pane numbersCtrl+b q
Toggle zoom (fullscreen)Ctrl+b z
Swap pane (forward)Ctrl+b }
Swap pane (backward)Ctrl+b {
Break pane to windowCtrl+b !
Resize pane (hold keys)Ctrl+b Ctrl+↑↓←→
Synchronize panessetw synchronize-panes
Cycle pane layoutsCtrl+b Space
📋 Copy Mode (Scroll)
Enter copy mode (Scroll Up)Ctrl+b [
Scroll Up / DownPgUp / PgDn
Search forward / back/ / ?
Page Up / DownCtrl+b Ctrl+f
⌨️ Command Mode
Open command promptCtrl+b :
List all key bindingsCtrl+b ?
Reload configCtrl+b : source ~/.tmux.conf
Show all optionstmux show-options -g
🔧 Miscellaneous
Enter command modeCtrl+b :
List key bindingsCtrl+b ?
Reload configCtrl+b : source ~/.tmux.conf
Set option (all sessions)tmux set-option -g OPTION
Set option (all windows)tmux set-window-option -g OPTION
Enable mouse modeset -g mouse on
Detach other clientsCtrl+b D
Suspend clientCtrl+b Ctrl+z
Send prefix to nested tmuxCtrl+b Ctrl+b
⚡ Zero-Latency Vim / Neovim Switching
By default, tmux enforces a 500ms delay after receiving an Esc keypress to determine if it belongs to an escape sequence. This creates noticeable mode-switching lag inside Vim/Neovim.
The Fix: Add this to your ~/.tmux.conf to eliminate the delay immediately:
set -s escape-time 0
⚠️ Native Mouse Copy vs. Scroll Freeze
When mouse mode (set -g mouse on) is enabled, dragging to select text causes tmux to copy to its internal buffer and immediately snap back to the bottom prompt.
Pro-Tip: Hold Shift (Linux/WSL) or Option / Fn (macOS) while dragging your mouse to temporarily bypass tmux and use your native terminal emulator's OS clipboard directly.
🏗️ The Golden 3-Pane Developer Layout
When developing full-stack web applications, standardizing your workspace layout drastically increases productivity:
- Left Pane (60% width): Neovim / Code Editor (Ctrl+b %)
- Top Right Pane: Live Dev Server & Hot-Reload logs
- Bottom Right Pane: Git CLI, Tests & Scratch REPL (Ctrl+b ")
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.