Tmux Reference

Intro#

Tmux is a great alternative to GNU Screen.

Reference#

Once you are in tmux, all command are prefixed by C-b. So, for example, if you want to split the screen, you need to type

C-b "

That is to say, Control-b followed by the double-quote.

Essential#

C-b send-prefix
? help
d detach-client

Panes#

Up Up-pane
Down down-pane
o down-pane
Space next-layout
x confirm-before kill-pane
Page Up scroll up (history)
Page Down scroll down (history)
q display-panes
x confirm-before kill-pane

Windows#

" split-window (vertically)
% split-window -h (horizontally)
& confirm-before kill-window
c new-window
n next-window
l last-window
p previous-window
& confirm-before kill-window

System#

d detach-client (detach and quit tmux but leave the session running)
: command-prompt

Shell#

The following are run from the shell, as in the command prompt.

tmux att [-d] attach to default session [and detach other others]

Sessions#

Creates a new tmux session named session_name

$ tmux new-session -s session_name
$ tmux new -s session_name

Attaches to an existing tmux session named session_name

$ tmux attach -t session_name
$ tmux att -t session_name

Switches to an existing session named session_name

$ tmux switch -t session_name

Lists existing tmux sessions

$ tmux list-sessions

Customization#

I'll get to that later.


Linux.Shell - TerminalMultiplexer - Networking