tmux
The default prefix is Ctrl+b. All key bindings below assume it unless noted.
Commands prefixed with $ run in a shell; commands prefixed with : run in tmux command mode
(Ctrl+b : to open the prompt).
Sessions and Windows
| Action |
Session |
Window |
| β New |
tmux new -s <name> |
Ctrl+b c |
| π List |
tmux ls / Ctrl+b s |
Ctrl+b w |
| βοΈ Rename |
Ctrl+b $ |
Ctrl+b , |
| β Close |
tmux kill-session -t <name> / : kill-session |
Ctrl+b & |
| π Attach / switch |
tmux attach -t <name> |
Ctrl+b 0β9 / Ctrl+b n / Ctrl+b p |
| π Attach or create |
tmux new-session -A -s <name> |
|
| πͺ Detach |
Ctrl+b d |
|
| π Toggle last active |
|
Ctrl+b l |
Panes
| Action |
Binding |
| β‘οΈ Split horizontally (side by side) |
Ctrl+b % |
| β¬οΈ Split vertically (top / bottom) |
Ctrl+b " |
| π Switch to pane by direction |
Ctrl+b β β β β |
| π Switch to next pane |
Ctrl+b o |
| π Toggle last active pane |
Ctrl+b ; |
| π’ Show pane numbers / jump |
Ctrl+b q, then number |
| βοΈ Move pane left / right |
Ctrl+b { / Ctrl+b } |
| πͺ Convert pane to window |
Ctrl+b ! |
| β Close current pane |
Ctrl+b x |
Misc
| Action |
Command |
| Enter command mode |
Ctrl+b : |
| Enable mouse |
: set mouse on |
| List all key bindings |
Ctrl+b ? |
Sources