tmux Quick Reference
Keep sessions alive across disconnects and split your terminal like a pro. Everything is prefix (Ctrl-b) then a key.
Sessions (survive disconnect)
- New named session
tmux new -s work- Detach
prefix d— session keeps running- List / attach
tmux ls·tmux attach -t work- Kill session
tmux kill-session -t work- Rename
prefix $
Panes (split)
- Split vertical / horizontal
prefix %(left/right) ·prefix "(top/bottom)- Move between panes
prefixthen arrow keys · orprefix o- Zoom a pane
prefix z— toggle fullscreen- Close pane
prefix x· or justexit- Cycle layouts
prefix Space
Windows (tabs)
- New / next / prev
prefix c·prefix n·prefix p- Jump to number
prefix 0..9- Rename window
prefix ,- List windows
prefix w
Copy mode & config
- Enter scroll/copy
prefix [— then move;qto exit- Reload config
prefix :thensource-file ~/.tmux.conf- Common tweak
- Set
mouse onfor click-to-select panes/scroll