tmux Cheatsheet

Power user.

Sessions

Sessions are the unit of long-lived work. Create a named session per project, detach when you walk away, and reattach from any new SSH connection. The session keeps running between attaches.

Windows

Windows are tabs inside a session. One window per concern, named so the window list reads like a meaningful agenda rather than a numbered grid.

Panes

Panes are splits inside a window for adjacent views: logs next to commands, tail next to edit. The right split layout halves the time spent context-switching between terminals.

Scrollback and copy

Scrollback is how you read the past inside tmux; copy mode is how you grab a chunk of it without leaving the terminal.

Config and prefix

The default prefix Ctrl-b is awkward; most operators rebind to Ctrl-a. Keep the rebind and other tweaks in ~/.tmux.conf so every shell inherits the same setup.