tmux cheat sheet
tmux keeps terminal sessions alive on a server. The default prefix is Ctrl+b: press it, release, then press the key.
Sessions (from the shell)
tmux new -s work- Start a session named work
tmux ls- List sessions
tmux attach -t work- Reattach to a session
tmux kill-session -t work- End a session
Sessions (prefix then key)
d- Detach, leaving the session running
s- Choose a session from a list
$- Rename the session
Windows (prefix then key)
c- Create a window
n p- Next, previous window
0 to 9- Jump to window by number
,- Rename the window
&- Close the window
Panes (prefix then key)
%- Split side by side
"- Split top and bottom
arrow keys- Move between panes
z- Zoom a pane, press again to restore
x- Close the pane
Scrolling and copy
[- Enter scroll mode (q to leave)
PgUp PgDn- Scroll in scroll mode
Learn it properly