Sessions, windows, panes, copy mode, configuration, and the patterns you actually use day-to-day.
Prefix key reminder. By default, every tmux keybinding is prefaced by Ctrl+b (the prefix). So when you see prefix c below, that means: press Ctrl+b, release, then press c. Many people remap the prefix to Ctrl+a for less finger gymnastics. See the Configuration section.
Enter copy mode (scrollback navigation, search, copy)
q
Exit copy mode
/ then text
Search forward (vi mode)
? then text
Search backward (vi mode)
n / N
Next / previous search match
Space
Start text selection (vi mode)
Enter
Copy selection to tmux paste buffer
prefix ]
Paste from tmux paste buffer
prefix =
Show all paste buffers and pick one
System clipboard: by default, tmux's paste buffer is internal. To put copied text into your OS clipboard, install xclip (Linux), pbcopy (macOS), or use the tmux-yank plugin which handles all platforms.
Status & Info
prefix t
Show big clock
prefix i
Show window info
prefix ?
List all keybindings
prefix :
Open command prompt
tmux info
Detailed info about tmux server (from outside tmux)
tmux list-keys
All keybindings, dumped (useful for grepping)
Configuration (~/.tmux.conf)
Edit ~/.tmux.conf and reload with prefix :source-file ~/.tmux.conf or kill the tmux server.
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Keep this at the very bottom of the config file
run '~/.tmux/plugins/tpm/tpm'
Common Patterns
One project per session. Name sessions after projects (tmux new -s terminalfeed). Use windows inside the session for different concerns (editor, server, logs, git). Detach (prefix d) when switching projects, never close the terminal window.
Reattach after SSH disconnect. If you SSH'd into a server and started something long-running in tmux, it survives the disconnect. Reconnect, run tmux a, and you're back.
Pair-programming. Two people SSH'd into the same machine can attach to the same session and see each other's input. Useful for live debugging or teaching.
Quick split for tail -f.prefix " then run tail -f log. Watch logs in the bottom while you work in the top. prefix z zooms whichever pane needs full attention.