TMUX(1) General Commands Manual TMUX(1) (NAME) tmux - (SYNOPSIS) tmux [-2CDhlNuVv] [-c shell-command] [-f file] [-L socket-name] [-S socket-path] [-T features] [command [flags]] (DESCRIPTION) tmux : . tmux (detach) (reattach) . tmux (session) (window) . . (pseudo terminals) tmux . . (panes) ( pty(4) ). tmux . (kill) tmux . (persistent) ( ssh(1)) ( `C-b d') . tmux : $ tmux attach tmux, (client) (server) . /tmp . : -2 tmux . -T 256 . -C ( CONTROL MODE ). (-CC) echo . -c shell-command shell-command . tmux default-shell . sh(1) tmux (login shell) . -D tmux (daemon) . exit-empty . -D, command . -f file . tmux /etc/tmux.conf ~/.tmux.conf $XDG_CONFIG_HOME/tmux/tmux.conf . tmux . tmux . source-file . tmux . -h . -L socket-name tmux TMUX_TMPDIR /tmp . default . tmux . -S : tmux-UID TMUX_TMPDIR /tmp . tmux-UID tmux (world) . SIGUSR1 tmux ( ). -l (login shell). tmux . -N ( new-session start-server). -S socket-path . -S -L . -T features . . terminal-features . -u UTF-8 LC_ALL, LC_CTYPE LANG "UTF-8" "UTF8" . -V tmux. -v (verbose logging). tmux-client-PID.log tmux-server-PID.log PID (PID) . -v tmux-out-PID.log tmux . SIGUSR2 tmux ( -v ) (toggle). command [flags] tmux . default-client-command new-session . (DEFAULT KEY BINDINGS) tmux (prefix) `C-b' (Ctrl-b) . : C-b (C-b) . C-o . C-z tmux. ! ( ). " . # (paste buffers). $ . % . & (kill) . ' (index) . ( . ) . * (floating pane) . , . - . . . 0 to 9 . : (command prompt) tmux. ; . = . ? (key bindings). D (detach). L . [ . ] (paste) . c . d (detach) . f . i . l . m ( select-pane -m). M . n . o . p . q . r . s . t . w . x (Kill) . z . { . } . ~ tmux, . Page Up (copy mode) . Up, Down Left, Right . M-1 to M-7 : even-horizontal even-vertical main-horizontal main-horizontal-mirrored main-vertical main-vertical-mirrored tiled. Space . M-n . M-o . M-p . C-Up, C-Down C-Left, C-Right ( ). M-Up, M-Down M-Left, M-Right ( ). bind-key unbind-key . (COMMAND PARSING AND EXECUTION) tmux . . bind-key . set-option ~/.tmux.conf : $ tmux set-option -g status-style bg=cyan set-option -g status-style bg=cyan bind-key C set-option -g status-style bg=cyan `set-option', `-g' `status-style' `bg=cyan' . tmux . tmux . . tmux tmux . tmux : - - ( command-prompt); - bind-key; - if-shell confirm-before. ` (command queue)' . ~/.tmux.conf . . if-shell confirm-before, . - ( if-shell) . if-shell, run-shell display-panes - if-shell run-shell display-panes . : new-session; new-window if-shell "true" "split-window" kill-session new-session, new-window, if-shell, true(1), split-window kill-session . (COMMANDS) tmux . (PARSING SYNTAX) tmux . - ksh(1) csh(1) . (;) . ` (command sequence)' - . (token) sh(1): $ tmux neww \; splitw : $ tmux neww ';' splitw tmux: neww ; splitw sh(1): $ tmux neww\; splitw : $ tmux 'neww;' splitw tmux : 1. (escape) . sh(1) ( `neww ';' splitw') ( `neww \; splitw') . 2. : tmux; : $ tmux neww 'foo\;' bar $ tmux neww foo\\\; bar 3. : $ tmux neww 'foo-;-bar' $ tmux neww foo-\;-bar () # - . \ (\ ). (line continuation) . (') (") ({}) . . . . : - $ ( (GLOBAL AND SESSION ENVIRONMENT) ). - ~ ~user . - \uXXXX \uXXXXXXXX . - \ () : \e escape \r (carriage return) \n \t tab. - \ooo (octal) ooo . \001. \377 . - \ ( \ ) - \; \$ . ( `%if' ) . tmux ( if-shell) . - {} : if-shell true { display -p 'brace-dollar-foo: }$foo' } if-shell true "display -p 'brace-dollar-foo: }\$foo'" : bind x if-shell "true" { if-shell "true" { display "true!" } } `name=value', `HOME=/home/user'. . `%hidden', : %hidden MYVAR=42 tmux . (GLOBAL AND SESSION ENVIRONMENT) . `%if', `%elif', `%else' `%endif' . `%if' `%elif' ( (FORMATS)) ( ) `%elif', `%else' `%endif' . : %if "#{==:#{host},myhost}" set -g status-style bg=red %elif "#{==:#{host},myotherhost}" set -g status-style bg=green %else set -g status-style bg=blue %endif `myhost' `myotherhost' . : %if #{==:#{host},myhost} set -g status-style bg=red %endif (COMMANDS) tmux . -t ( -s) target-client, target-session, target-window target-pane . . target-client pty(4) /dev/ttyp1 ttyp1 /dev/ttyp1. tmux . list-clients . target-session : 1. (session ID) $. 2. ( list-sessions ). 3. `mysess' `mysession' . 4. glob(7) . `=' ( `=mysess' `mysess' `mysession'). . . target-window ( src-window dst-window) session:window . session target-session window : 1. . 2. `mysession:1' `mysession' . 3. @1. 4. `mysession:mywindow'. 5. `mysession:mywin'. 6. glob(7) . `=' . ( new-window link-window) session . . . {start} ^ {end} $ {last} ! ( ) {next} + {previous} - {current} @ target-pane ( src-pane dst-pane) target-window : `mysession:mywindow.1'. . : {last} ! ( ) {next} + {previous} - {top} {bottom} {left} {right} {top-left} - {top-right} - {bottom-left} - {bottom-right} - {up-of} {down-of} {left-of} {right-of} {active} @ `+' `-' : select-window -t:+2 target-session, target-window target-pane `{mouse}' ( `=') ( (MOUSE SUPPORT) ) `{marked}' ( `~') ( select-pane -m ). `$', `@', `%' . tmux . TMUX_PANE . `session_id', `window_id' `pane_id' ( (FORMATS) ) display-message, list-sessions, list-windows list-panes . target-session, target-window target-pane `' . `:' `.' tmux . target-pane `1' tmux `1' . . ( target-pane `-t:.1) ' . shell-command sh(1) . : new-window 'vi ~/.tmux.conf' : /bin/sh -c 'vi ~/.tmux.conf' new-window, new-session, split-window, respawn-window respawn-pane shell-command ( `sh -c'). . : $ tmux new-window vi ~/.tmux.conf vi(1) . command [argument ...] tmux : bind-key F1 set-option status off .tmux.conf : bind-key F1 { set-option status off } tmux : refresh-client -t/dev/ttyp2 rename-session -tfirst newname set-option -wt:0 monitor-activity on new-window ; split-window -d bind-key R source-file ~/.tmux.conf \; \ display-message "source-file done" sh(1): $ tmux kill-window -t :1 $ tmux new-window \; split-window -d $ tmux new-session -d 'vi ~/.tmux.conf' \; split-window -d \; attach (CLIENTS AND SESSIONS) tmux . new-session attach-session. . . (WINDOWS AND PANES) . : attach-session [-dErx] [-c working-directory] [-f flags] [-t target-session] (alias: attach) tmux target-session . target-session - new-session ( -A ) . target-session . -d . -x SIGHUP . -f . : active-pane ignore-size no-detach-on-destroy no-output pause-after=seconds seconds read-only wait-exit `!' . -r -f read-only,ignore-size . detach-client switch-client . active-pane . . attach-session . target-session attach-session : tmux . -c ( ) working-directory . -E update-environment . detach-client [-aP] [-E shell-command] [-s target-session] [-t target-client] (alias: detach) -t - -s . -a -t . -P SIGHUP . -E - shell-command . has-session [-t target-session] (alias: has) 1 . 0 . kill-server tmux . kill-session [-aCg] [-t target-session] ( ) . -a . -g . -C ( ) . list-clients [-r] [-F format] [-f filter] [-O sort-order] [-t target-session] (alias: lsc) . -F -f . . FORMATS . -O : `name ' `size ' `creation' () `activity' (). -r . target-session . list-commands [-F format] [command] (alias: lscm) command - - tmux . list-sessions [-r] [-F format] [-f filter] [-O sort-order] (alias: ls) . -F -f . . FORMATS . -O : `index ' `name ' `creation' () `activity' (). -r . lock-client [-t target-client] (alias: lockc) target-client lock-server . lock-session [-t target-session] (alias: locks) target-session . new-session [-AdDEPX] [-c start-directory] [-e environment] [-f flags] [-F format] [-n window-name] [-s session-name] [-t group-name] [-x width] [-y height] [shell-command [argument ...]] (alias: new) session-name . -d . window-name shell-command . -d - default-size -x -y . `-' ( ) . -x -y default-size . -f ( attach-session ). termios(4) . -A new-session session-name attach-session -A -D -d attach-session -X -x attach-session . -t session group ( ) . - . . group-name : 1. 2. - 3. . -t -n shell-command . -P . `#{session_name}:' -F . -E update-environment . -e `VARIABLE=value' . refresh-client [-cDlLRSU] [-A pane:state] [-B name:what:format] [-C size] [-f flags] [-r pane:report] [-t target-client] [adjustment] (alias: refresh) -t . -S . -U, -D, -L, -R -c . -U adjustment -D -L adjustment -R . -c . adjustment 1 . . -C size `widthxheight' `window ID:widthxheight' `80x24' `@0:80x24'. -A . ( `%'), `on', `off', `continue' `pause'. `off' tmux . `continue' tmux ( pause-after), . `pause' tmux . -A . -B . : name what format . %subscription-changed ( ). . what : `%0'; `%*' `@0'; `@*' . -f attach-session. -r ( OSC 10) . ( `%'), . -l xterm(1) . -L, -R, -U -D adjustment . -c . window-size. rename-session [-t target-session] new-name (alias: rename) new-name. server-access [-adlrw] [user] / user. tmux ( ) (root) . -a -d . -d . -r -w user : -r -w . -l . tmux ( ) . . . show-messages [-JT] [-t target-client] (alias: showmsgs) . message-limit . -J -T . source-file [-Fnqv] [-t target-pane] path ... (alias: source) path ( glob(7) ). -F path . -q path . -n, . -v . start-server (alias: start) tmux . tmux ~/.tmux.conf exit-empty . : $ tmux start \; show -g suspend-client [-t target-client] (alias: suspendc) SIGTSTP ( tty). switch-client [-ElnprZ] [-c target-client] [-O sort-order] [-t target-session] [-T key-table] (alias: switchc) target-client target-session. -t ( `:', `.' `%') . -Z . -l, -n -p . -O -n -p : `name', `size', `creation' ( ) `activity' ( ). -r read-only ignore-size ( attach-session). -E update-environment . -T key-table . ( root). . list-keys `abc': bind-key -Ttable2 c list-keys bind-key -Ttable1 b switch-client -Ttable2 bind-key -Troot a switch-client -Ttable1 (WINDOWS AND PANES) tmux (pane) . split-window . ( -h) . resize-pane ( `C-Up', `C-Down' `C-Left' `C-Right') select-pane rotate-window swap-pane . . tmux . : - (Copy mode) . copy-mode `[' . paste-buffer `]' . - (View mode) list-keys, . - (Choose mode) . . choose-buffer, choose-client choose-tree . - . -X send-keys . mode-keys : copy-mode emacs copy-mode-vi vi. list-keys . : append-selection . append-selection-and-cancel (vi: A) . back-to-indentation (vi: ^) (emacs: M-m) . begin-selection (vi: Space) (emacs: C-Space) . bottom-line (vi: L) . cancel (vi: q) (emacs: Escape) . clear-selection (vi: Escape) (emacs: C-g) . copy-end-of-line [-CP] [prefix] . prefix . copy-end-of-line-and-cancel [-CP] [prefix] . copy-pipe-end-of-line [-CP] [command] [prefix] command. prefix . copy-pipe-end-of-line-and-cancel [-CP] [command] [prefix] copy-pipe-end-of-line . copy-line [-CP] [prefix] . copy-line-and-cancel [-CP] [prefix] . copy-pipe-line [-CP] [command] [prefix] command. prefix . copy-pipe-line-and-cancel [-CP] [command] [prefix] copy-pipe-line . copy-pipe [-CP] [command] [prefix] command. prefix . copy-pipe-no-clear [-CP] [command] [prefix] copy-pipe . copy-pipe-and-cancel [-CP] [command] [prefix] copy-pipe . copy-selection [-CP] [prefix] . copy-selection-no-clear [-CP] [prefix] copy-selection . copy-selection-and-cancel [-CP] [prefix] (vi: Enter) (emacs: M-w) . cursor-down (vi: j) (emacs: Down) . cursor-down-and-cancel cursor-down . cursor-left (vi: h) (emacs: Left) . cursor-right (vi: l) (emacs: Right) . cursor-up (vi: k) (emacs: Up) . cursor-centre-vertical (emacs: C-l) . cursor-centre-horizontal (emacs: M-l) . end-of-line (vi: $) (emacs: C-e) . goto-line line (vi: :) (emacs: g) . halfpage-down (vi: C-d) (emacs: M-Down) . halfpage-down-and-cancel halfpage-down . halfpage-up (vi: C-u) (emacs: M-Up) . history-bottom (vi: G) (emacs: M->) . history-top (vi: g) (emacs: M-<) . jump-again (vi: ;) (emacs: ;) . jump-backward to (vi: F) (emacs: F) . jump-forward to (vi: f) (emacs: f) . jump-reverse (vi: ,) (emacs: ,) ( ). jump-to-backward to (vi: T) . jump-to-forward to (vi: t) . jump-to-mark (vi: M-x) (emacs: M-x) . middle-line (vi: M) (emacs: M-r) . next-matching-bracket (vi: %) (emacs: M-C-f) . next-paragraph (vi: }) (emacs: M-}) . next-prompt [-o] . next-word (vi: w) . next-word-end (vi: e) (emacs: M-f) . next-space (vi: W) next-word . next-space-end (vi: E) next-word-end . other-end (vi: o) . page-down (vi: C-f) (emacs: PageDown) . page-down-and-cancel page-down . page-up (vi: C-b) (emacs: PageUp) . pipe [command] command . pipe-no-clear [command] pipe . pipe-and-cancel [command] [prefix] pipe . previous-matching-bracket (emacs: M-C-b) . previous-paragraph (vi: {) (emacs: M-{) . previous-prompt [-o] . previous-word (vi: b) (emacs: M-b) . previous-space (vi: B) previous-word . rectangle-on . rectangle-off . rectangle-toggle (vi: v) (emacs: R) . recentre-top-bottom (emacs : C-l) . refresh-from-pane (vi: r) (emacs: r) . scroll-bottom . scroll-down (vi: C-e) (emacs: C-Down) . scroll-down-and-cancel scroll-down . scroll-exit-on . scroll-exit-off . scroll-exit-toggle . scroll-middle (vi: z) . scroll-to-mouse . -e . scroll-top . scroll-up (vi: C-y) (emacs: C-Up) . search-again (vi: n) (emacs: n) . search-backward text (vi: ?) . search-backward-incremental text (emacs: C-r) . -i command-prompt . search-backward-text text . search-forward text (vi: /) . search-forward-incremental text (emacs: C-s) . -i command-prompt . search-forward-text text . search-reverse (vi: N) (emacs: N) ( ). select-line (vi: V) . select-word . selection-mode [char | word | line] . set-mark (vi: X) (emacs: X) . start-of-line (vi: 0) (emacs: C-a) . stop-selection . toggle-position (vi: P) (emacs: P) . top-line (vi: H) (emacs: M-R) . : `search-forward' `search-backward' `-text' `-incremental' -i command-prompt . `search-again' `search-reverse' ( ). `C-r' `C-s', emacs(1) . . `next-prompt' `previous-prompt' (\033]133;A\033\\) tmux . -o . (\033]133;C\033\\) tmux . . ( `buffer' `buffer0', `buffer1' ). pipe . `copy-pipe' . `-and-cancel' ( ) ( ) . `-no-clear' . -C -P . -C -P . . word-separators . (next word) (next word end) (previous word) . . word-separators / / . . `f' `/' `/' . `;' . . vi emacs Alt () . copy-mode : copy-mode [-deHMqSu] [-s src-pane] [-t target-pane] . -u -d . -H . -q . -M (mouse drag) ( MOUSE SUPPORT). -S copy-mode scroll-to-mouse. -s target-pane src-pane . -e ( ) . . : bind PageUp copy-mode -eu bind PageDown copy-mode -ed (layouts) . select-layout next-layout ( `Space' ) . : even-horizontal . even-vertical . main-horizontal () . main-pane-height . main-horizontal-mirrored main-horizontal . main-vertical () . main-pane-width . main-vertical-mirrored main-vertical . tiled . select-layout - list-windows select-layout . : $ tmux list-windows 0: ksh [159x48] layout: bb62,159x48,0,0{79x48,0,0,79x48,80,0} $ tmux select-layout 'bb62,159x48,0,0{79x48,0,0,79x48,80,0}' tmux . . : break-pane [-abdP] [-F format] [-n window-name] [-s src-pane] [-t dst-window] (alias: breakp) src-pane dst-window. -a -b, ( ). -d . -P . `#{session_name}:#{window_index}.#{pane_index}' -F . capture-pane [-aeFHLpPqCJMN] [-b buffer-name] [-E end-line] [-S start-line] [-t target-pane] (alias: capturep) . -p stdout -b . -a (alternate screen) . -q . -M . -e . -C (octal) \xxx . -T . -N -J -J -T . -P . -L -F ( `-' `D' `O' `P' `X' `H' ). -H, . . -S -E . `-' -S -E . . choose-client [-NryZ] [-F format] [-f filter] [-K key-format] [-O sort-order] [-t target-pane] [template] . . . -Z . -y . : Enter Up Down C-s n N t T C-t d D x HUP X HUP z Z f O r v F1 or C-h q `%%' template . template "detach-client -t '%%'" . -O : `name', `size', `creation' ( ) `activity' ( ). -r . -f : - . . -F -K . -N . . choose-tree [-GNrswyZ] [-F format] [-f filter] [-K key-format] [-O sort-order] [-t target-pane] [template] (tree mode) . . . -s (collapsed) -w . -Z . -y . : Enter Up Down S-Up S-Down + - M-+ M-- x X < > C-s m M n N t T C-t : f H O r v F1 or C-h q `%%' `%1' template . template "switch-client -t '%%'" . -O : `index', `name', `activity' () `z'. -r . -f : - . . -F -K . -N . -G . . customize-mode [-NZ] [-F format] [-f filter] [-t target-pane] [template] . . -Z . : Key Function Enter Up Down + - M-+ M-- s S w d D u ( ) U C-s n N t T C-t f v F1 or C-h q -f : - . . -F . -N . . display-panes [-bN] [-d duration] [-t target-client] [template] (alias: displayp) target-client . display-panes-colour display-panes-active-colour . ( -N ) duration . -d display-panes-time . . `0' `9' template `%%' . template "select-pane -t '%%'" . -b, . find-window [-iCNrTZ] [-t target-pane] match-string (alias: findw) glob(7) -r, match-string ( ). : -C -N -T . -i . -CNT . -Z . . join-pane [-bdfhv] [-l size] [-s src-pane] [-t dst-pane] (alias: joinp) split-window, dst-pane src-pane . break-pane . -b src-pane dst-pane . -s ( select-pane -m ) . kill-pane [-a] [-t target-pane] (alias: killp) . . -a -t . kill-window [-a] [-t target-window] (alias: killw) target-window . -a -t . last-pane [-deZ] [-t target-window] (alias: lastp) ( ) . -Z . -e -d . last-window [-t target-session] (alias: last) ( ) . target-session . link-window [-abdk] [-s src-window] [-t dst-window] (alias: linkw) src-window dst-window . dst-window src-window . -a -b dst-window ( ). -k dst-window . -d . list-panes [-ars] [-F format] [-f filter] [-O sort-order] [-t target] (alias: lsp) -a target . -s target ( ) . target ( ) . -F -f . . (FORMATS) . -O : `name' () `index', `size' () `creation' () `activity' (). -r . list-windows [-ar] [-F format] [-f filter] [-O sort-order] [-t target-session] (alias: lsw) -a . target-session . -F -f . . (FORMATS) . -O : `index', `name', `size' () `creation' () `activity' (). -r . move-pane [-bdfhv] [-l size] [-s src-pane] [-t dst-pane] (alias: movep) join-pane . move-window [-abrdk] [-s src-window] [-t dst-window] (alias: movew) link-window src-window dst-window . -r, base-index . new-window [-abdkPS] [-c start-directory] [-e environment] [-F format] [-n window-name] [-t target-window] [shell-command [argument ...]] (alias: neww) . -a -b, (index) target-window target-window . -d . target-window -k . -S window-name ( -d ). shell-command . shell-command default-command . -c . . remain-on-exit . -e `VARIABLE=value' . TERM tmux `screen' `tmux' . `TERM=screen' -e . -P . `#{session_name}:#{window_index}' -F . new-pane [-bdefhIkPvZ] [-c start-directory] [-e environment] [-F format] [-l size] [-m message] [-p percentage] [-R inactive-border-style] [-s style] [-S active-border-style] [-t target-pane] [shell-command [argument ...]] (alias: newp) (pane) . target-pane . -d . -Z . -s . -S -R ( STYLES). -h -v -v . -l ( ) ( ) size `%' . -p . -b target-pane . -f ( -h) ( -v), . -k shell-command . remain-on-exit-format . -m message -k remain-on-exit-format message . -E, shell-command ('') display-message -I . -I stdin . : $ make 2>&1|tmux splitw -dI & new-window . next-layout [-t target-window] (alias: nextl) (layout) . next-window [-a] [-t target-session] (alias: next) . -a . pipe-pane [-IOo] [-t target-pane] [shell-command] (alias: pipep) target-pane . shell-command . shell-command status-left . shell-command ( ) . -I -O shell-command : -I (stdout) ( shell-command ) -O (stdin) ( shell-command). . -O . -o (toggle) : bind-key C-p pipe-pane -o 'cat >>~/output.#I-#P' previous-layout [-t target-window] (alias: prevl) (layout) . previous-window [-a] [-t target-session] (alias: prev) . -a, . rename-window [-t target-window] new-name (alias: renamew) target-window new-name . resize-pane [-DLMRTUZ] [-t target-pane] [-x width] [-y height] [adjustment] (alias: resizep) adjustment -U, -D, -L -R, -x -y . adjustment ( ) -x -y `%' ( `-x 10%'). -Z, ( ) ( ) (toggle ). -M ( MOUSE SUPPORT). -T . resize-window [-aADLRU] [-t target-window] [-x width] [-y height] [adjustment] (alias: resizew) adjustment -U, -D, -L -R, -x -y . adjustment ( ). -A -a . window-size manual . respawn-pane [-k] [-c start-directory] [-e environment] [-t target-pane] [shell-command [argument ...]] (alias: respawnp) ( remain-on-exit ). shell-command . -k (kill). -c . -e new-window . respawn-window [-k] [-c start-directory] [-e environment] [-t target-window] [shell-command [argument ...]] (alias: respawnw) ( remain-on-exit ). shell-command . -k (kill). -c . -e new-window . rotate-window [-DUZ] [-t target-window] (alias: rotatew) ( ) -U ( ). -Z . select-layout [-Enop] [-t target-pane] [layout-name] (alias: selectl) . layout-name ( ) . -n -p next-layout previous-layout . -o ( ). -E . select-pane [-DdeLlMmRUZ] [-T title] [-t target-pane] (alias: selectp) target-pane . -D, -L, -R, -U . -Z . -l last-pane . -e -d . -T . -m -M marked pane . . -s join-pane, move-pane, swap-pane swap-window . select-window [-lnpT] [-t target-window] (alias: selectw) target-window. -l, -n -p last-window, next-window previous-window . -T last-window . split-window [-bdefhIkPvZ] [-c start-directory] [-e environment] [-F format] [-l size] [-m message] [-p percentage] [-R inactive-border-style] [-s style] [-S active-border-style] [-t target-pane] [shell-command [argument ...]] (alias: splitw) target-pane. new-pane . new-pane . swap-pane [-dDUZ] [-s src-pane] [-t dst-pane] (alias: swapp) . -U -s dst-pane ( ) -D ( ) . -d tmux -Z . -s ( select-pane -m ) . swap-window [-d] [-s src-window] [-t dst-window] (alias: swapw) link-window . src-window . -d . -s ( select-pane -m ) . unlink-window [-k] [-t target-window] (alias: unlinkw) target-window. -k - -k . (KEY BINDINGS) tmux . ( `A' `Z'). Ctrl `C-' `^ ' Shift `S-' Alt ( meta) `M-' . : Up, Down, Left, Right, BSpace, BTab, DC (Delete) End, Enter, Escape, F1 F12, Home, IC (Insert) NPage/PageDown/PgDn, PPage/PageUp/PgUp, Space Tab. `"' `'' : bind-key '"' split-window bind-key "'" new-window Any . : bind-key [-nr] [-N note] [-T key-table] key [command [argument ...]] (alias: bind) key command. . ( -T) prefix . ( `c' new-window prefix `C-b c' ). root : `c' new-window root ( ) `c' . -n -T root . switch-client -T . -r initial-repeat-time repeat-time . -N ( list-keys -N ) . -r -N command . list-keys . list-keys [-1aNr] [-F format] [-O sort-order] [-P prefix-string] [-T key-table] [key] (alias: lsk) . -F . (FORMATS) . -T key-table . -1 . -O : `key', `modifier', `name' ( ). -r . format : bind-key -N . . -N, root prefix -T key-table . -P . -a . send-keys [-FHKlMRX] [-c target-client] [-N repeat-count] [-t target-pane] [key ...] (alias: send) . key ( `C-a' `NPage') . -K target-pane target-client . . . -l UTF-8 . -H () ASCII . -R . -M ( (MOUSE SUPPORT) ). -X (copy mode) - (WINDOWS AND PANES) . -N -F . send-prefix [-2] [-t target-pane] -2 . unbind-key [-anq] [-T key-table] key (alias: unbind) key . -n -T bind-key . -a . -q . (OPTIONS) tmux . (server, session, window, pane) (string, number, key, colour, flag, choice, command) . flag : 1, on, yes, 0, off, no; choice key (KEY BINDINGS) colour (STYLES) . tmux . set-option -s show-options -s . . . set-option show-options . set-option . . . 0 : set -w window-style bg=red set -pt:.0 window-style bg=blue . set-option -w -p show-option -w -p . tmux `@' . `@' . : $ tmux set -wq @foo "abc123" $ tmux show -wv @foo abc123 : set-option [-aFgopqsuUw] [-t target-pane] option [value] (alias: set) -p, -w, -s, . -w -s - tmux -w . -g . -F . -u ( -g, ). -U ( -u) . value (flag) (choice) ( ). -o -q . -a, value . : set -g status-left "foo" set -ag status-left "bar" `foobar' . : set -g status-style "bg=red" set -ag status-style "fg=blue" . -a, . show-options [-AgHpqsvw] [-t target-pane] [option] (alias: show) ( option) -p, -w, -s, . -w -s - tmux -w . -g . -v . -q option . -H (hooks) ( ). -A . : backspace key tmux backspace . buffer-limit number . command-alias[] name=value . name value . : set -s command-alias[100] zoom='resize-pane -Z' : zoom -t:.1 : resize-pane -Z -t:.1 bind-key . codepoint-widths[] string . . codepoint=width, codepoint UTF-8 `U+number' ( number ) `U+number-U+number' . copy-command shell-command copy-pipe . default-client-command command tmux . new-session. . default-terminal terminal - TERM . tmux `screen', `tmux' . escape-time time tmux escape meta . editor shell-command tmux . exit-empty [on | off] () . exit-unattached [on | off] . extended-keys [on | off | always] ( Control Meta Shift ) . modifyOtherKeys xterm(1) . on, : . always, . off, . tmux . extkeys terminal-features, extended-keys-format pane_key_mode . extended-keys-format [csi-u | xterm] . formatOtherKeys xterm(1) . C-S-a `^[[27;6;65~' xterm, `^[[65;6u' csi-u. . focus-events [on | off] tmux. . . focus-follows-mouse [on | off] mouse . get-clipboard [both | request | buffer | off] tmux. . off, buffer, tmux (paste buffer) request tmux ( ) ( ) both request . set-clipboard . history-file path tmux . input-buffer-size bytes escape . . message-limit number . prompt-history-limit number . set-clipboard [on | external | off] escape xterm(1) Ms terminfo(5) ( (TERMINFO EXTENSIONS) ). on, tmux escape . external, tmux tmux . off, tmux escape . xterm(1) : disallowedWindowOps: 20,21,SetXprop xterm(1) . terminal-features[] string terminfo(5). . tmux . terminfo(5) . tmux tmux . terminal-overrides terminfo(5) terminal-features terminfo(5). . . ( glob(7) ) . : 256 escape SGR. clipboard . ccolour . cstyle . extkeys . focus . hyperlinks OSC 8. ignorefkeys terminfo(5) tmux . margins DECSLRM. mouse xterm(1). osc7 OSC 7. overline (overline) SGR. progressbar OSC 9;4. rectfill escape DECFRA. RGB RGB escape SGR. sixel SIXEL. strikethrough escape (strikethrough) SGR. sync . title xterm(1). usstyle . terminal-overrides[] string terminfo(5) . ( glob(7) ) name=value . `clear' terminfo(5) `\e[H\e[2J' `rxvt*': rxvt*:clear=\e[H\e[2J strunvis(3) . user-keys[] key escape . `User0', `User1', . : set -s user-keys[0] "\e[5;30012~" bind User0 resize-pane -L 3 variation-selector-always-wide [on | off] (Unicode variation selector 16) . . : activity-action [any | none | current | other] monitor-activity . any ( visual-activity) none ( monitor-activity ) current other . assume-paste-time milliseconds milliseconds (paste) tmux . . base-index index . . bell-action [any | none | current | other] monitor-bell . activity-action . default-command shell-command ( ) shell-command sh(1) . tmux default-shell . default-shell path . default-command . tmux SHELL getpwuid(3) /bin/sh . tmux . default-size XxY window-size (manual) new-session -d . `x' . 80x24 . destroy-unattached [off | on | keep-last | keep-group] on . off () . keep-last . keep-group . detach-on-destroy [off | on | no-detached | previous | next] on () . off . no-detached . previous next . display-panes-active-colour colour display-panes . display-panes-colour colour display-panes . display-panes-time time display-panes . display-time time . 0 . time . history-limit lines . initial-repeat-time time -r (bind) . . repeat-time . initial-repeat-time repeat-time . key-table key-table key-table root. lock-after-time number ( lock-session) number . ( 0 ). lock-command shell-command . lock(1) -np . menu-style style . style (STYLES) . menu-selected-style style . style (STYLES) . menu-border-style style . style (STYLES) . menu-border-lines type . border-lines popup-border-lines . message-command-style style . vi(1) . style (STYLES) . message-format string . `#{message}' `#{command_prompt}' (vi) 1 . fill align width . message-style message-command-style . message-line [0 | 1 | 2 | 3 | 4] . message-style style . . . width ( `50%') align (left, centre, right) . . fill message-format . style (STYLES) . mouse [on | off] tmux . (MOUSE SUPPORT) . prefix key . (KEY BINDINGS) prefix `None' . prefix2 key . prefix prefix2 `None' . prefix-timeout time prefix tmux . . prompt-cursor-colour colour . prompt-cursor-style style . cursor-style . prompt-command-cursor-style style vi . cursor-style . renumber-windows [on | off] . base-index . . repeat-time time time ( 500 ). -r bind-key . resize-pane . initial-repeat-time . set-titles [on | off] tsl fsl terminfo(5) . xterm(1) tmux \e]0;...\007 . . set-titles-string string set-titles . (FORMATS) . silence-action [any | none | current | other] monitor-silence . activity-action . status [off | on | 2 | 3 | 4 | 5] . on 2 3 4 5 . status-format[] format . . status-interval interval interval . . . status-justify [left | centre | right | absolute-centre] : left centre right. centre absolute-centre . status-keys [vi | emacs] vi emacs . emacs VISUAL EDITOR `vi' . status-left string string ( ) . string strftime(3) . (FORMATS) (STYLES) . (NAMES AND TITLES) . : #(sysctl vm.loadavg) #[fg=yellow,bold]#(apm -l)%%#[default] [#S] `[#S] ' . status-left-length length length . 10 . status-left-style style . style, (STYLES) . status-position [top | bottom] . status-right string string . . status-left, string strftime(3) . status-right-length length length . 40 . status-right-style style . style, (STYLES) . status-style style . style, (STYLES) . update-environment[] variable . ( -r set-environment ). visual-activity [on | off | both] (on) monitor-activity . both . visual-bell [on | off | both] (on) monitor-bell ( ) . both . bell-action . visual-silence [on | off | both] monitor-silence . both . word-separators string . : aggressive-resize [on | off] . tmux ( window-size ) . SIGWINCH . automatic-rename [on | off] . tmux automatic-rename-format . new-window new-session, rename-window, . : set-option -wg automatic-rename off automatic-rename-format format ( (FORMATS) ) automatic-rename . clock-mode-colour colour . clock-mode-style [12 | 24 | 12-with-seconds | 24-with-seconds] . fill-character character . main-pane-height height main-pane-width width ( ) main-horizontal, main-horizontal-mirrored, main-vertical main-vertical-mirrored . `%' . copy-mode-match-style style . style, (STYLES) . copy-mode-mark-style style . style, (STYLES) . copy-mode-current-match-style style . style, (STYLES) . copy-mode-position-format format . copy-mode-position-style style . style, (STYLES) . copy-mode-selection-style style . style, (STYLES) . copy-mode-current-line-number-style style . style, (STYLES) . copy-mode-line-number-style style . style, (STYLES) . copy-mode-line-numbers [off | default | absolute | relative | hybrid] . off default goto-line absolute relative hybrid . off default, goto-line absolute, relative hybrid, . mode-keys [vi | emacs] vi emacs . emacs VISUAL EDITOR `vi' . mode-style style . style, (STYLES) . monitor-activity [on | off] . . monitor-bell [on | off] . . monitor-silence [interval] ( ) interval . . . other-pane-height height ( ) main-horizontal main-horizontal-mirrored . 0 () . main-pane-height other-pane-height . `%' . other-pane-width width other-pane-height, main-vertical main-vertical-mirrored . pane-active-border-style style . style, STYLES . . pane-base-index index base-index, . pane-border-format format . pane-border-indicators [off | colour | arrows | both] . pane-border-lines type . type : single ACS UTF-8 double UTF-8 heavy UTF-8 simple ASCII number spaces `double' `heavy' UTF-8 ACS . pane-border-status [off | top | bottom] . pane-border-style style . style, STYLES . . popup-style style . style STYLES . . popup-border-style style . style STYLES . . popup-border-lines type . type : single ACS UTF-8 () rounded single UTF-8 double UTF-8 heavy UTF-8 simple ASCII padded ASCII none `double' `heavy' UTF-8 ACS . pane-scrollbars [off | modal | on] . `slider' . on . modal . . modal, . pane-scrollbars-style . pane-scrollbars-style style . style, STYLES . slider . width pad . . pane-scrollbars-position [left | right] . pane-status-current-style style . style, STYLES . pane-status-style style . style, STYLES . session-status-current-style style . style, STYLES . session-status-style style . style, STYLES . tiled-layout-max-columns number tiled . 0 () . . tree-mode-preview-format format . tree-mode-preview-style style . style, STYLES . window-status-activity-style style . style, STYLES . window-status-bell-style style . style, STYLES . window-status-current-format string window-status-format, . window-status-current-style style . style, STYLES . window-status-format string . FORMATS STYLES . window-status-last-style style . style, STYLES . window-status-separator string . . window-status-style style . style, STYLES . window-size largest | smallest | manual | latest tmux . largest smallest, . manual, default-size . latest, tmux . resize-window aggressive-resize . wrap-search [on | off] . on . : allow-passthrough [on | off | all] (\ePtmux;...\e\\) tmux . on . all . allow-rename [on | off] (\ek...\e\\) . allow-set-title [on | off] (\e]2;...\e\\ \e]0;...\e\\) . alternate-screen [on | off] smcup rmcup terminfo(5) . . cursor-colour colour . cursor-style style . : default, blinking-block, block, blinking-underline, underline, blinking-bar, bar. pane-colours[] colour . tmux . 255 . remain-on-exit [on | off | failed | key] . failed . key . respawn-pane . remain-on-exit-format string remain-on-exit . scroll-on-clear [on | off] . synchronize-panes [on | off] ( ). window-active-style style . style, (STYLES) . window-style style . style, (STYLES) . window-pane-status-format string . (FORMATS) (STYLES) . window-pane-current-status-format string window-status-format, . (HOOKS) tmux . tmux after . . . set-hook set-option show-hooks show-options -H . : set-hook -g pane-mode-changed[42] 'set -g status-left-style bg=red' set-option -g pane-mode-changed[42] 'set -g status-left-style bg=red' . after . `after-' . split-window even-vertical : set-hook -g after-split-window "selectl even-vertical" `command-error' . : set-hook -g command-error "run-shell \"echo 'a tmux command failed' >>/tmp/log\"" (CONTROL MODE) %exit ( ). : alert-activity . monitor-activity . alert-bell (bell) . monitor-bell . alert-silence . monitor-silence . client-active . client-attached . client-detached . client-focus-in . client-focus-out . client-resized . client-session-changed . client-light-theme . client-dark-theme . command-error . pane-died remain-on-exit . pane-exited . pane-focus-in focus-events . pane-focus-out focus-events . pane-set-clipboard xterm(1) . session-created . session-closed . session-renamed . window-layout-changed . window-linked . window-renamed . window-resized . client-resized . window-unlinked . : set-hook [-agpRuw] [-t target-pane] hook-name [command] -R, hook-name command ( -u ). set-option . -R, hook-name . show-hooks [-gpw] [-t target-pane] [hook] . show-options . (MOUSE SUPPORT) mouse ( ) tmux . ( `MouseUp1') : Pane Border Status StatusLeft StatusRight StatusDefault ScrollbarSlider ScrollbarUp ScrollbarDown ControlN N (STYLES) . : WheelUp WheelDown MouseDown1 MouseUp1 MouseDrag1 MouseDragEnd1 MouseDown2 MouseUp2 MouseDrag2 MouseDragEnd2 MouseDown3 MouseUp3 MouseDrag3 MouseDragEnd3 SecondClick1 SecondClick2 SecondClick3 DoubleClick1 DoubleClick2 DoubleClick3 TripleClick1 TripleClick2 TripleClick3 `SecondClick' `DoubleClick' `TripleClick' . `MouseDown1Status'. `{mouse}' `=' target-window target-pane . ( `MouseUp1Status', `WheelDownPane'). -M send-keys . . mouse . (FORMATS) -F format . . `#{' `}' `#{session_name}'. tmux . `#S'; `##' `#' `#,' `,' `#}' `}' . `?' . . . . . `#{?session_attached,attached,not attached}' `attached' `not attached' `#{?automatic-rename,yes,no}' automatic-rename `yes' `no' . `#{?#{n:window_name},#{window_name} - }' . `#{?session_format,format1,window_format,format2,format3}' format1 format2 format3 . . `,' `}' `#,' `#}' `#{...}' . : #{?pane_in_mode,#[fg=white#,bg=red],#[fg=red#,bg=white]}#W `==', `!=', `<', `>', `<=' `>=' . `#{==:#{host},myhost}' `myhost' `1' `0' . `||' `&&' `#{||:#{pane_in_mode},#{alternate_on}}'. `!' `#{!:#{pane_in_mode}}'. `!!' 1 0 `#{!!:non-empty string}' 1 . `m' glob(7) . . : `r' glob(7) `i' . : `#{m:*foo*,#{host}}' `#{m/ri:^A,MYVAR}'. `C' glob(7) . `m', `r' `i' . : `#{C/r:^Start}' `e' . `f' . . : `+', `-', `*', `/', () `m' `%' ( `%' strftime(3) `%%' ) `==', `!=', `<', `<=', `>' `>='. `#{e|*|f|4:5.5,3}' 5.5 3 `#{e|%%:7,3}' 7 3 . `a' ASCII `#{a:98}' `b' . `c' tmux RGB . `=', . `#{=5:pane_title}' `#{=-5:pane_title}' . - `#{=/5/...:pane_title}' `...' . `p' `#{p10:pane_title}' 10 . . `n' `w' `#{n:window_name}'. `R' `#{R:a,3}' `aaa' . `t:' `#{window_activity}' `1445765102' `#{t:window_activity}' `Sun Oct 25 09:25:02 2015' . `p (' ``t/p`') . `f' ( strftime(3) status-left, `%' `%%' ): `#{t/f/%%H#:%%M:window_activity}', strftime(3). `b:' `d:' basename(3) dirname(3) . `q:' sh(1) `h', ( `#' `##' ) `a' tmux . `E:' `#{E:status-left}' status-left . `T:' `E:' strftime(3) . `S:', `W:', `P:' `L:' . `L:', `S:' `W:' `/i', `/n', `/t' `/r' . `/r' `P:' . `S/nr:' . : . : #{W:#{E:window-status-format} ,#{E:window-status-current-format} } `W:', (`@name') `next_' `prev_' `@color' `next_@color' . `N:' ( `w') ( `s') ``N/w:foo`' `foo' 1 . `s/foo/bar/:' `foo' `bar' . `i' `s/a(.)/\1x/i:' `abABab' `bxBxbx' . . `s|foo/|bar/|:' `foo/' `bar/' . (;) `#{T;=10:status-left}', strftime(3) 10 . `#()' . `#(uptime)' (uptime) . tmux `#()' . . /bin/sh tmux ( (GLOBAL AND SESSION ENVIRONMENT) ). `l' . `#{l:#{?pane_in_mode,yes,no}}' `#{?pane_in_mode,yes,no}' . : active_window_index alternate_on 1 alternate_saved_x (X) alternate_saved_y (Y) bracket_paste_flag buffer_created buffer_full buffer_name buffer_sample buffer_size client_activity client_cell_height client_cell_width client_control_mode 1 client_created client_discarded client_flags client_height client_key_table client_last_session client_name client_pid PID client_prefix 1 client_readonly 1 client_session client_termfeatures client_termname client_termtype client_tty client_uid UID client_user client_utf8 1 UTF-8 client_width client_written command command_list_alias command_list_name command_list_usage config_files cursor_blinking 1 copy_cursor_hyperlink copy_cursor_line copy_cursor_word copy_cursor_x (X) copy_cursor_y (Y) copy_position copy_position_limit current_file cursor_character cursor_colour cursor_flag cursor_shape cursor_very_visible 1 cursor_x (X) cursor_y (Y) history_bytes history_limit history_size hook hook_client hook_pane hook_session hook_session_name hook_window hook_window_name host #H (hostname) host_short #h ( ) insert_flag (insert) key_string key_repeat 1 key_note key_prefix key_table key_command key_has_repeat 1 key_string_width key_string key_table_width key_table keypad_cursor_flag keypad_flag last_window_index line loop_last_flag 1 W: P: S: L: mouse_all_flag mouse_any_flag mouse_button_flag mouse_hyperlink mouse_line mouse_sgr_flag SGR mouse_standard_flag mouse_status_line mouse_status_range mouse_utf8_flag UTF-8 mouse_word mouse_x (X) mouse_y (Y) next_session_id next_window_active 1 W: next_window_index W: origin_flag (origin) pane_active 1 pane_at_bottom 1 pane_at_left 1 pane_at_right 1 pane_at_top 1 pane_bg pane_bottom pane_current_command pane_current_path pane_dead 1 pane_dead_signal pane_dead_status pane_dead_time pane_fg pane_flags pane_floating_flag 1 pane_format 1 pane_height pane_id #D pane_in_mode pane_index #P pane_input_off 1 pane_key_mode pane_last 1 pane_left pane_marked 1 pane_marked_set 1 pane_mode pane_path ( ) pane_pid PID pane_pipe 1 pane_pipe_pid PID pane_pb_state hidden normal error indeterminate paused ( ) pane_pb_progress ( ) pane_right pane_search_string pane_start_command pane_start_path pane_synchronized 1 pane_tabs pane_title #T ( ) pane_top pane_tty pane_unseen_changes 1 pane_width pane_x (X) pane_y (Y) pane_z (Z) pane_zoomed_flag 1 pid PID prev_window_active 1 W: prev_window_index W: rectangle_toggle 1 scroll_position scroll_region_lower scroll_region_upper search_count search_count_partial 1 search_match search_present 1 selection_active 1 selection_end_x (X) selection_end_y (Y) selection_mode selection_present 1 selection_start_x (X) selection_start_y (Y) server_sessions session_active 1 session_activity session_activity_flag 1 session_alerts session_attached session_attached_list session_bell_flag 1 session_created session_format 1 session_group session_group_attached session_group_attached_list session_group_list session_group_many_attached 1 session_group_size session_grouped 1 session_id session_last_attached session_many_attached 1 session_marked 1 session_name #S session_path session_silence_flag 1 session_stack session_windows socket_path sixel_support 1 SIXEL start_time synchronized_output_flag 1 uid UID user version window_active 1 window_active_clients window_active_clients_list window_active_sessions window_active_sessions_list window_activity window_activity_flag 1 window_bell_flag 1 window_bigger 1 window_cell_height window_cell_width window_end_flag 1 window_flags #F # ## window_format 1 window_height window_id window_index #I window_last_flag 1 window_layout window_linked 1 window_linked_sessions window_linked_sessions_list window_marked_flag 1 window_name #W window_offset_x (X) window_offset_y (Y) window_panes window_raw_flags window_silence_flag 1 window_stack_index window_start_flag 1 window_visible_layout window_width window_zoomed_flag 1 wrap_flag (STYLES) tmux status-style . status-left, `#[' `]' . `default' ( status-style ) : fg=colour . : black, red, green, yellow, blue, magenta, cyan, white; brightblack, brightred, ...; colour0 colour255 default terminal RGB `#ffffff'. bg=colour . us=colour . none ( ). acs, bright ( bold), dim, underscore, blink, reverse, hidden, italics, overline, strikethrough, double-underscore, curly-underscore, dotted-underscore, dashed-underscore . `no' . acs . align=left ( noalign), align=centre, align=right . fill=colour . width=N . N ( `50%') . list=on, list=focus, list=left-marker, list=right-marker, nolist status-format : list=on list=focus ( ) list=left-marker list=right-marker . noattr . push-default, pop-default . push-default default pop-default . ( push-default ). range=left, range=right, range=session|X, range=window|X, range=pane|X, range=user|X, range=control|N, norange status-format . range=left range=right `StatusLeft' `StatusRight' . range=session|X, range=window|X range=pane|X . `Status' `X' . `X' . mouse_status_range `session ' `window' `pane' . range=user|X `Status' . `X' mouse_status_range . `X' . range=control|N . `N' 0 9 . range=control|N `ControlN' . MOUSE SUPPORT . set-default . . : fg=yellow bold underscore blink bg=black,fg=default,noreverse (NAMES AND TITLES) tmux . : tmux . . ( xterm(1) X(7) ). - . tmux set-titles . new-session rename-session . : 1. ( -n new-window new-session). 2. ( allow-rename ): $ printf '\033kWINDOW_NAME\033\\' 3. . automatic-rename . . : $ printf '\033]2;My Title\033\\' select-pane -T . (GLOBAL AND SESSION ENVIRONMENT) tmux . . . . update-environment . tmux TMUX TERM `screen' . . tmux ( FORMATS ). : set-environment [-Fhgru] [-t target-session] variable [value] (alias: setenv) . -g target-session . -F value . -u . -r . -h . show-environment [-hgs] [-t target-session] [variable] (alias: showenv) target-session -g. variable . `-' . -s Bourne . -h ( ). (STATUS LINE) tmux . ( status ) : . status-format . : ( status-left, status-left-length, status-right, status-right-length ) . ( ) . window-status-format window-status-current-format . : * . - ( ) . # . ! . ~ monitor-silence . M . Z . # monitor-activity . ( ) . status-style window-status-style. status-interval . : clear-prompt-history [-T prompt-type] (alias: clearphist) prompt-type. -T . prompt-type command-prompt . command-prompt [-1bCeFiklN] [-I inputs] [-p prompts] [-t target-client] [-T prompt-type] [template] . tmux . template . -F - template . -I inputs . -p prompts template ( ) `:' ( ) . -l inputs prompts . `%%' `%1' `%2' . (`%1' `%9'). `%%%' `%%' . -1 . -k -1 . -N . -C . -i . -e BSpace . -T tmux . Tab . : `command', `search', `target' `window-target'. status-keys : vi emacs q Escape C-w d C-u D C-k Enter Enter Down Up p C-y Tab Tab h Left l Right $ C-e w M-f b M-b 0 C-a C-t -b, . confirm-before [-by] [-c confirm-key] [-p prompt] [-t target-client] command (alias: confirm) command . -p prompt command . status-left . -b, . -y ( Enter ) . -c confirm-key `y' . display-menu [-OM] [-b border-lines] [-c target-client] [-C starting-choice] [-H selected-style] [-s style] [-S border-style] [-t target-pane] [-T title] [-x position] [-y position] name key command [name key command ...] (alias: menu) target-client . target-pane . : ( ) . FORMATS STYLES . (-) ( ) . . -b . border-lines popup-border-lines . -H ( STYLES ). -s -S ( STYLES ). -T ( FORMATS ). -C . -x -y . : C R -x P M W S -y : popup_centre_x popup_centre_y popup_height popup_mouse_bottom popup_mouse_centre_x popup_mouse_centre_y popup_mouse_top popup_mouse_x (X) popup_mouse_y (Y) popup_pane_bottom popup_pane_left popup_pane_right popup_pane_top popup_status_line_y popup_width popup_window_status_line_x popup_window_status_line_y . . . . -O . -M tmux . : Enter Up Down q display-message [-aCIlNpv] [-c target-client] [-d delay] [-t target-pane] [message] (alias: display) . -p stdout target-client delay . delay display-time . -N . -C . -l message . message FORMATS -t target-pane . -v -a . -I stdin target-pane (forward) . display-popup [-BCEkN] [-b border-lines] [-c target-client] [-d start-directory] [-e environment] [-h height] [-s style] [-S border-style] [-t target-pane] [-T title] [-w width] [-x position] [-y position] [shell-command [argument ...]] (alias: popup) shell-command ( default-command) target-client . . . -b, -B, -C, -E, -EE, -K, -N, -s -S . -E shell-command . -E shell-command . -k `Escape' `C-c' . -x -y display-menu . -w -h - ( `%'). . -B . -b . -B -b . border-lines popup-border-lines . -s -S ( STYLES ). -e `VARIABLE=value' . -T ( FORMATS ). -C . -N -E, -EE -k . show-prompt-history [-T prompt-type] (alias: showphist) prompt-type . -T . prompt-type, command-prompt . (BUFFERS) tmux (paste buffers) . . set-buffer load-buffer, set-buffer -n . `buffer0001', `buffer0002' . buffer-limit . buffer-limit delete-buffer . copy-mode set-buffer load-buffer paste-buffer . . . history-limit ( set-option ). : choose-buffer [-NryZ] [-F format] [-f filter] [-K key-format] [-O sort-order] [-t target-pane] [template] . . . -Z (zoom) . -y . : (Key) (Function) Enter Up Down C-s n N t T C-t p P d D e f O r v F1 or C-h q `%%' template . template "paste-buffer -p -b '%%'" . -O : `creation' () `name' `size'. -r . -f : - . . -F -K . -N . . clear-history [-H] [-t target-pane] (alias: clearhist) . -H . delete-buffer [-b buffer-name] (alias: deleteb) buffer-name . list-buffers [-r] [-F format] [-f filter] [-O sort-order] (alias: lsb) . -F -f . (true) . FORMATS . -O : `name', `size' `creation' (). -r . load-buffer [-w] [-b buffer-name] [-t target-client] path (alias: loadb) path . -w (escape sequence) xterm(1) target-client . path `-' (stdin) . paste-buffer [-dprS] [-b buffer-name] [-s separator] [-t target-pane] (alias: pasteb) . . vis(3) -S . -d, . (LF) (CR) . -s . -r ( LF). -p bracketed paste . save-buffer [-a] [-b buffer-name] path (alias: saveb) path . -a (append) . path `-' (stdout) . set-buffer [-aw] [-b buffer-name] [-t target-client] [-n new-buffer-name] data (alias: setb) data . -w xterm(1) target-client . -a . -n new-buffer-name . show-buffer [-b buffer-name] (alias: showb) . (MISCELLANEOUS) : clock-mode [-t target-pane] . if-shell [-bF] [-t target-pane] shell-command command [command] (alias: if) shell-command ( /bin/sh ) command command . shell-command FORMATS, target-pane, . -b, shell-command . -F shell-command . lock-server (alias: lock) lock-command . run-shell [-bCE] [-c start-directory] [-d delay] [-t target-pane] [shell-command [argument ...]] (alias: run) shell-command /bin/sh ( -C) tmux . shell-command FORMATS . argument `#{1}', `#{2}' . : run-shell 'myscript.sh #1 #2' foo bar -b, . -d delay . -E (stderr) (stdout) . -c start-directory . -C stdout ( -t ) . . wait-for [-L | -S | -U] channel (alias: wait) wait-for -S . -L wait-for -U . (EXIT MESSAGES) tmux (detach) . : detached (from session ...) . detached and SIGHUP SIGHUP ( detach-client -P). lost tty tty(4) pty(4) . terminated SIGTERM . too far behind tmux . exited . server exited SIGTERM . server exited unexpectedly . TERMINFO (TERMINFO EXTENSIONS) tmux terminfo(5) . terminal-features . AX tmux . Bidi tmux VTE . Cs, Cr . . tmux : $ printf '\033]12;red\033\\' X(7) XParseColor(3) . Cmg, Clmg, Dsmg, Enmg DECSLRM. VT420 . Dsbp, Enbp bracketed paste. XT, . Dseks, Eneks . Dsfcs, Enfcs . XT, . Hls . Nobr tmux (bold) . Rect tmux . Smol (overline). Smulx . : 0 1 2 3 4 5 . Setulc, Setulc1, ol . Setulc RGB Setulc1 ANSI . Setulc (red * 65536) + (green * 256) + blue 0 255 . Ss, Se . : $ printf '\033[4 q' Se Ss 0 . Spb OSC9;4. Swd . fsl . Sxl SIXEL . Sync ( 1) ( 2) . Tc RGB `direct colour' ( \e[38;2;255;255;255m). ( `initc' `ccc' tmux terminfo(5) ). RGB terminfo(5) . Ms () . set-clipboard xterm(1) . XT tmux xterm(1) . (CONTROL MODE) tmux control mode . tmux . tmux . . %begin ( ). %end %error . %begin %end %error : ( epoch) ( ). : %begin 1363006971 2 1 0: ksh* (1 panes) [80x24] [layout b25f,80x24,0,0,2] @2 (active) %end 1363006971 2 1 refresh-client -C . tmux . . : %client-detached client . %client-session-changed client session-id name session-id name . %config-error error . %continue pane-id ( pause-after refresh-client -A ). %exit [reason] tmux . reason . %extended-output pane-id age ... : value %output pause-after . age tmux . `:' . %layout-change window-id window-layout window-visible-layout window-flags window-id . window-layout . window-visible-layout window-flags . %message message display-message . %output pane-id value . value \xxx . %pane-mode-changed pane-id pane-id . %paste-buffer-changed name name . %paste-buffer-deleted name name . %pause pane-id () ( pause-after ). %session-changed session-id name session-id name . %session-renamed name name . %session-window-changed session-id window-id session-id window-id . %sessions-changed . %subscription-changed name session-id window-id window-index pane-id ... : value name value . refresh-client -B . pane-id `:' . %unlinked-window-add window-id window-id . %unlinked-window-close window-id window-id . %unlinked-window-renamed window-id new-name window-id . %window-add window-id window-id . %window-close window-id window-id . %window-pane-changed window-id pane-id window-id pane-id . %window-renamed window-id name window-id name . (ENVIRONMENT) tmux : EDITOR `vi' VISUAL vi . mode-keys status-keys . HOME (login) . passwd(5) . LC_CTYPE locale(1) . . -u LC_CTYPE "UTF-8" "UTF8" UTF-8 . ASCII ASCII (`_') . tmux UTF-8 . en_US.UTF-8 LC_CTYPE . LC_CTYPE tmux UTF-8 . LC_CTYPE UTF-8 tmux . LC_TIME locale(1) . strftime(3) . PWD . . getcwd(3) . SHELL . default-shell . TMUX_TMPDIR . -L . VISUAL `vi' vi . mode-keys status-keys . (FILES) ~/.tmux.conf $XDG_CONFIG_HOME/tmux/tmux.conf ~/.config/tmux/tmux.conf tmux. /etc/tmux.conf . (EXAMPLES) tmux vi(1) : $ tmux new-session vi (alias) . new-session, new : $ tmux new vi . : $ tmux n ambiguous command: n, could be: new-session, new-window, next-window `C-b c' ( Ctrl `b' `c') . : `C-b 0' ( ) `C-b 1' ( ) `C-b n' `C-b p' . `C-b d' ( ssh(1)) (detach) (reattach) : $ tmux attach-session `C-b ?' `q' . tmux ~/.tmux.conf . : : set-option -g prefix C-a unbind-key C-b bind-key C-a send-prefix : set-option -g status off set-option -g status-style bg=blue : set-option -g default-command "exec /bin/ksh" set-option -g lock-after-time 1800 : bind-key b set-option status bind-key / command-prompt "split-window 'exec man %%'" bind-key S command-prompt "new-window -n %1 'ssh %1'" (SEE ALSO) pty(4) (AUTHORS) Nicholas Marriott Linux 6.12.107+deb13-amd64 September 21, 2026 Linux 6.12.107+deb13-amd64