tmux Cheat Sheet Template
tmux 会话、窗口、窗格、复制模式与命令行的快捷键已经填好,你只要勾掉不需要的条目就能直接导出 PNG,也可以让 AI 换一种排版
免费无需注册Pro 无水印
tmux
tmux Cheat Sheet Template
实时预览 · 随勾选更新
完整清单
这份速查表的全部模块与条目清单。
Sessions
13 条- 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 条- 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 条- 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 条- 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 条- 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 条- 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
用 vji 生成的作品
来自社区的精美速查表作品。
这个分类还没有公开作品,发布你的第一张就会出现在这里。
什么是 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.
常见问题
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.