tmux ist eine Alternative zu screen
Mit Hilfe von tmux kann man
| Einstieg | |
|---|---|
| tmux-Sitzung starten | tmux | 
| tmux-Sitzung in den Hintergrund schicken | Strg+bd | 
| tmux-Sitzung in den Vordergrund holen | tmux attach | 
| shell beenden | Strg+d | 
| Sitzungen (sessions) | |
| Benannte Sitzung sitzung1starten | tmux new -s sitzung1 | 
| Sitzungen auflisten | tmux list-sessions | 
| mit laufender Sitzung sitzung1verbinden | tmux attach -t sitzung1 | 
| Fenster (windows) | |
| Neues tmux-„Fenster“ | Strg+bc | 
| zum nächsten Fenster wechseln | Strg+bn | 
| zum vorherigen Fenster wechseln | Strg+bp | 
| Aktuelles Fenster benennen | Strg+b, | 
| Fenster auflisten | Strg+bw | 
| zum 4. Fenster springen | Strg+b4([0..9]) | 
| Terminal aufteilen (panes) | |
| Horizontal teilen | Strg+b" | 
| Vertikal teilen | Strg+b% | 
| zu anderem pane wechseln | Strg+b<Pfeil> | 
| aktuelles pane entfernen | Strg+bx | 
| Größe des aktuellen panes ändern | Strg+bStrg+<Pfeil> | 
| aktuelles pane zu Vollbild und zurück (Zoom) | Strg+bz | 
| alle panes vertikal gleich groß anordnen | Strg+bAlt+2bzw.Strg+bESC2 | 
| alle panes horizontal gleich groß anordnen | Strg+bAlt+1bzw.Strg+bESC1 | 
| scrollen | |
| nach oben scrollen | Strg+bBild auf | 
| tmux Scrolling einschalten | Strg+b [ | 
| tmux Scrolling ausschalten | Strg+c | 
Eingabe in alle Fenster leiten:
<Strg>+b:set synchronize-panes
wieder ausschalten:
:set synchronize-panes off
In tmux wieder „ganz normal“ mit Shift+<BildAuf> scrollen:
# Xterm scrolling set -g terminal-overrides 'xterm*:smcup@:rmcup@'
In tmux per Maus scrollen, Panes wechseln, etc.:
# mouse support set -g mouse on
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.
:setw -g mode-keys vi
:set -s copy-command 'cat >> ~/doku'
# Strg+a statt Strg+b set -g prefix C-a unbind-key C-b bind-key C-a send-prefix