$ command-helper

tmux

Sessions that survive disconnects, windows, panes and the default key bindings.

Requires Google sign-in

Sessions

New named session
tmux new -s <session>
List sessions
tmux ls
Attach to a session
tmux attach -t <session>
Attach or create if missing
tmux new -A -s <session>
Kill a session
tmux kill-session -t <session>
Detach from the session
Ctrl+b d

The session keeps running — you can close SSH and come back later.

Windows

New window
Ctrl+b c
Next / previous window
Ctrl+b n / Ctrl+b p
Go to window by number
Ctrl+b 0…9
Rename window
Ctrl+b ,
Pick a window or session from a list
Ctrl+b w

Panes

Split vertically (side by side)
Ctrl+b %
Split horizontally (one above the other)
Ctrl+b "
Move between panes
Ctrl+b ←↑→↓
Zoom a pane to full screen and back
Ctrl+b z
Close a pane
Ctrl+b x

Scrolling and settings

Scroll mode (q to exit)
Ctrl+b [
Enable the mouseadvanced
echo 'set -g mouse on' >> ~/.tmux.conf && tmux source-file ~/.tmux.conf
Type in all panes at onceadvanced
tmux setw synchronize-panes on