Manage terminal sessions, windows and panes with tmux — from the shell commands to the prefix key bindings.
tmuxStart a new tmux sessiontmux new -s workStart a named sessiontmux lsList running sessionstmux attach -t workRe-attach to a named sessiontmux kill-session -t workEnd a named sessioncCreate a new windown / pGo to the next / previous window0–9Jump to a window by number,Rename the current window&Close the current window%Split the pane left/right"Split the pane top/bottomarrow keysMove between paneszZoom the current pane in/outxClose the current panedDetach from the session (it keeps running)[Enter scroll/copy mode?List all key bindingstmux keeps your terminal sessions alive even when you disconnect — start a long job on a server, detach with prefix then d, close your laptop, and reattach later with everything still running. That alone makes it essential for remote work over SSH. Beyond persistence, it lets you split one terminal into multiple panes and juggle several windows, so you can edit, run and monitor side by side.
Almost every tmux shortcut starts with the prefix (Ctrl+b by default): you press it, let go, then press the action key. So a new window is prefix then c, splitting a pane is prefix then %, and detaching is prefix then d. Once that rhythm clicks, the rest is just learning which letters do what — and pairs naturally with Vim and the SSH commands.