tmux Cheat Sheet Template
Sessions, windows, panes, copy mode and command-line shortcuts are already filled in — untick what you don't need, export a PNG, or let AI redesign the layout
FreeNo sign-upNo watermark with Pro
tmux
tmux Cheat Sheet Template
Live preview — updates as you select
The full reference
A complete list of sections and items in this cheat sheet.
Sessions
13 items- New sessiontmux
- New named sessiontmux new -s [name]
- List all sessionstmux ls
- Attach last sessiontmux a
- Attach named sessiontmux a -t [name]
- Detach from sessionCtrl+b d
- Detach other clientsCtrl+b D
- Previous sessionCtrl+b (
- Next sessionCtrl+b )
- Rename current sessionCtrl+b $
- Interactive session listCtrl+b s
- Kill specific sessiontmux kill-session -t [name]
- Kill all sessions (server)tmux kill-server
Windows
12 items- Create windowCtrl+b c
- Rename windowCtrl+b ,
- Next windowCtrl+b n
- Previous windowCtrl+b p
- Last (toggled) windowCtrl+b l
- Select by numberCtrl+b 0-9
- Window list (interactive)Ctrl+b w
- Find windowCtrl+b f
- Swap windowstmux swap-window -s 2 -t 1
- Renumber windowstmux move-window -r
- Kill windowCtrl+b &
- Move windowCtrl+b .
Panes
15 items- Split horizontallyCtrl+b %
- Split verticallyCtrl+b '"'
- Toggle last active paneCtrl+b ;
- Navigate panesCtrl+b arrow
- Select next paneCtrl+b o
- Select pane by numberCtrl+b q 0-9
- Show pane numbersCtrl+b q
- Toggle zoom (fullscreen)Ctrl+b z
- Kill paneCtrl+b x
- Swap pane (forward)Ctrl+b "}"
- Swap pane (backward)Ctrl+b "{"
- Break pane to windowCtrl+b !
- Resize pane (hold keys)Ctrl+b Ctrl+arrow
- Synchronize panessetw synchronize-panes
- Cycle pane layoutsCtrl+b space
Copy Mode (Scroll)
14 items- Enter copy mode (scroll up)Ctrl+b "["
- Scroll up / downPgUp / PgDn
- Paste bufferCtrl+b ]
- List buffersCtrl+b =
- Navigate (vi)h j k l
- Line start / end0 / $
- Search forward / back/ or ?
- Next / prev matchn / N
- Move word (vi)w / b
- Jump top / bottomg / G
- Page up / downCtrl+b Ctrl+f
- Start selectionv / space
- Copy selectiony / Enter
- Exit copy modeq / Esc
Command Mode
6 items- Open command promptCtrl+b ":"
- List all key bindingsCtrl+b ?
- Reload configCtrl+b : source ~/.tmux.conf
- tmux versiontmux -V
- Server infotmux info
- Show all optionstmux show-options -g
Miscellaneous
7 items- Set option (all sessions)tmux set -g [opt] [val]
- Set window optiontmux setw -g [opt] [val]
- Enable mouse modeset -g mouse on
- Refresh clientCtrl+b r
- Clock modeCtrl+b t
- Suspend clientCtrl+b Ctrl+z
- Send prefix to nested tmuxCtrl+b Ctrl+b
Made with vji
Beautiful cheat sheets created by our community.
No public sheets in this category yet — publish yours and it shows up here.
What is tmux?
tmux is a terminal multiplexer: it runs several terminal sessions inside one window, and keeps them alive after you disconnect. Start work in a session, detach, log back in later from any machine, and everything is exactly where you left it.
It is the standard tool for long-running work on remote servers — builds, logs, deploys, anything you do not want killed by a dropped SSH connection.
Windows and panes split one terminal into many. You talk to tmux through the prefix key, Ctrl+b by default: press it, release, then press the key for the command you want.
FAQ
What is tmux used for?
Running multiple terminal sessions in one window and keeping them running across disconnects — most commonly on remote servers over SSH.
What is the prefix key?
Ctrl+b by default. Press it, release it, then press the key for the command — for example Ctrl+b d to detach the current session.
Do sessions survive an SSH disconnect?
Yes, that is the point. A detached session keeps running until the machine reboots or you kill it. Reattach later with tmux a.
Do I need to install tmux?
Often not — many Linux servers ship it already. Otherwise use your package manager: apt install tmux, brew install tmux on macOS, pkg install tmux on FreeBSD.
Where do I put my config?
~/.tmux.conf. After editing it, reload with Ctrl+b : then source-file ~/.tmux.conf, or restart the server with tmux kill-server.
Turn any text into a printable cheat sheet
Save time, stay focused, and keep your reference close.