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
prefix then arrow keys · or prefix o
Zoom a pane
prefix z — toggle fullscreen
Close pane
prefix x · or just exit
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; q to exit
Reload config
prefix : then source-file ~/.tmux.conf
Common tweak
Set mouse on for click-to-select panes/scroll