Default prefix is Ctrl+b. Commands are of the form <prefix> <command key>.
| key | action |
|---|---|
| C-b | literal control-B |
| C-z | suspend tmux |
| d | detach current client |
| ? | list key bindings |
| r | force redraw |
| ~ | show tmux messages |
| : | enter tmux command prompt |
| pane creation and control | |
| " | vertical pane split (like vim's :split) |
| % | horizontal pane split (like vim's :vsplit) |
| o | select next pane (in current window, when relevant) |
| x | kill pane |
| q | display pane indexes |
| ← ↑ → ↓ | switch to the pane in that direction |
| C-← C-↑ C-→ C-↓ | resize pane |
| mode control | |
| [ | enter copy mode |
| q (vi) ; esc (emacs) | leave copy mode |
| C-b ; PgUp | prev page |
| C-f ; PgDown | next page |
| G ; M-< | go to bottom |
| g ; M-> | go to top |
| space ; C-space | start selection |
| esc ; C-g | clear selection |
| enter ; M-w | copy selection |
| ] | paste last copied text |
| C-y ; C-↑ | scroll up |
| C-e ; C-↓ | scroll down |
a session is a collection of pseudo-terms. each session is linked to a window or windows. each window contains one or more panes, and each pane is a pseudo-terminal.
a session can be detached from the tmux server with C-b d and a new tmux client can be attached to the session with tmux attach.
when in copy mode, two sets of hotkeys are available: vi and emacs modes, chosen with the mode-keys option. the hotkeys in the table above are vi-mode.
options can be set with set-option and show-option.
give these the -s parameter to set or show global options
(server options)
which are independent of windows or sessions.
set-window-option [-t target-window] opt val
is for window-specific options.
interesting options:
posted 2016-10-05, last edited 2023-10-01 | oatcookies.tx0.org