Inhaltsverzeichnis

tmux is an alternative to screen

with the help of tmux you can

start
start a tmux-session tmux
move a tmux session to the background Ctrl+b d
move a tmux session into forground tmux attach
end a shell Ctrl+d
sessions
start a named session 'session1' tmux new -s session1
list sessions tmux list-sessions
connect to running session session1 tmux attach -t session1
windows
new tmux „window“ Ctrl+b c
change to next window Ctrl+b n
change to previous window Ctrl+b p
change name of current window Ctrl+b ,
list windows Ctrl+b w
jump to window 4 Ctrl+b 4 ([0..9])
panes
split horizontaly Ctrl+b "
split verticaly Ctrl+b %
change to other pane Ctrl+b <Pfeil>
remove current pane Ctrl+b x
change the size of the current pane Ctrl+b Ctrl+<Pfeil>
change current pane to full-screen and back Ctrl+b z
change all panes to verticaly same size Ctrl+b Alt+2 bzw.Ctrl+b ESC 2
change all panes to horizontally same size Ctrl+b Alt+1 bzw.Ctrl+b ESC 1
scroll
scroll up Ctrl+b Bild auf
turn scrolling on Ctrl+b [
turn scrolling off Ctrl+c

Reloading tmux config

If you have made changes to your tmux configuration file in the ~/.tmux.conf file, it shouldn’t be necessary to start the server up again from scratch with kill-server. Instead, you can prompt the current tmux session to reload the configuration with the source-file command.

This can be done either from within tmux, by pressing Ctrl+B and then : to bring up a command prompt, and typing:

:source-file ~/.tmux.conf

Or simply from a shell:

$ tmux source-file ~/.tmux.conf

This should apply your changes to the running tmux server without affecting the sessions or windows within them.

Distributed shell

have input in all panes:

:set synchronize-panes

switch it off again:

:set synchronize-panes off

''Ctrl+a'' instead of ''Ctrl+b''

# Ctrl+a statt Ctrl+b
set -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix

documentation