Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung | |||
admin_grundlagen:tmux_en [2023/08/07 16:01] ingo_wichmann |
admin_grundlagen:tmux_en [2023/08/07 16:16] ingo_wichmann |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | // tmux is an alternative tu [[screen]] // | + | // tmux is an alternative to [[screen]] // |
with the help of tmux you can | with the help of tmux you can | ||
Zeile 9: | Zeile 9: | ||
^ start ^^ | ^ start ^^ | ||
| start a tmux-session | ''tmux'' | | | start a tmux-session | ''tmux'' | | ||
- | | move a tmux session to the background | ''Strg+b'' ''d'' | | + | | move a tmux session to the background | ''Ctrl+b'' ''d'' | |
- | | move a tmux session into forground | ''tmux attach'' | | + | | move a tmux session into forground | ''tmux attach'' | |
- | | end a shell | ''Strg+d'' | | + | | end a shell | ''Ctrl+d'' | |
^ sessions ^^ | ^ sessions ^^ | ||
- | | Benannte Sitzung ''sitzung1'' starten | ''tmux new -s sitzung1'' | | + | | start a named session 'session1' | ''tmux new -s session1'' | |
- | | Sitzungen auflisten | ''tmux list-sessions'' | | + | | list sessions | ''tmux list-sessions'' | |
- | | mit laufender Sitzung ''sitzung1'' verbinden | ''tmux attach -t sitzung1'' | | + | | connect to running session ''session1'' | ''tmux attach -t session1'' | |
- | ^ Fenster (windows) ^^ | + | ^ windows ^^ |
- | | Neues tmux-"Fenster" | ''Strg+b'' ''c'' | | + | | new tmux "window" | ''Ctrl+b'' ''c'' | |
- | | zum nächsten Fenster wechseln | ''Strg+b'' ''n'' | | + | | change to next window | ''Ctrl+b'' ''n'' | |
- | | zum vorherigen Fenster wechseln | ''Strg+b'' ''p'' | | + | | change to previous window | ''Ctrl+b'' ''p'' | |
- | | Aktuelles Fenster benennen | ''Strg+b'' '','' | | + | | change name of current window | ''Ctrl+b'' '','' | |
- | | Fenster auflisten | ''Strg+b'' ''w'' | | + | | list windows | ''Ctrl+b'' ''w'' | |
- | | zum 4. Fenster springen | ''Strg+b'' ''4'' ([0..9]) | | + | | jump to window 4 | ''Ctrl+b'' ''4'' ([0..9]) | |
- | ^ Terminal aufteilen (panes) ^^ | + | ^ panes ^^ |
- | | Horizontal teilen | ''Strg+b'' ''%%"%%'' | | + | | split horizontaly | ''Ctrl+b'' ''%%"%%'' | |
- | | Vertikal teilen | ''Strg+b'' ''%'' | | + | | split verticaly | ''Ctrl+b'' ''%'' | |
- | | zu anderem pane wechseln | ''Strg+b'' ''<Pfeil>'' | | + | | change to other pane | ''Ctrl+b'' ''<Pfeil>'' | |
- | | aktuelles pane entfernen | ''Strg+b'' ''x'' | | + | | remove current pane | ''Ctrl+b'' ''x'' | |
- | | Größe des aktuellen panes ändern | ''Strg+b'' ''Strg+<Pfeil>'' | | + | | change the size of the current pane | ''Ctrl+b'' ''Ctrl+<Pfeil>'' | |
- | | aktuelles pane zu Vollbild und zurück (Zoom) | ''Strg+b'' ''z'' | | + | | change current pane to full-screen and back | ''Ctrl+b'' ''z'' | |
- | | alle panes vertikal gleich groß anordnen | ''Strg+b'' ''Alt+2'' bzw.''Strg+b'' ''ESC'' ''2'' | | + | | change all panes to verticaly same size | ''Ctrl+b'' ''Alt+2'' bzw.''Ctrl+b'' ''ESC'' ''2'' | |
- | | alle panes horizontal gleich groß anordnen | ''Strg+b'' ''Alt+1'' bzw.''Strg+b'' ''ESC'' ''1'' | | + | | change all panes to horizontally same size | ''Ctrl+b'' ''Alt+1'' bzw.''Ctrl+b'' ''ESC'' ''1'' | |
- | ^ scrollen ^^ | + | ^ scroll ^^ |
- | | nach oben scrollen | ''Strg+b'' ''Bild auf'' | | + | | scroll up | ''Ctrl+b'' ''Bild auf'' | |
- | | tmux Scrolling einschalten | ''Strg+b ['' | | + | | turn scrolling on | ''Ctrl+b ['' | |
- | | tmux Scrolling ausschalten | ''Strg+c'' | | + | | turn scrolling off | ''Ctrl+c'' | |
- | + | ||
- | ====== scrollen ====== | + | |
- | In tmux wieder "ganz normal" mit ''Shift+<BildAuf>'' scrollen: | + | |
- | <file raw /etc/tmux.conf> | + | |
- | # Xterm scrolling | + | |
- | set -g terminal-overrides 'xterm*:smcup@:rmcup@' | + | |
- | </file> | + | |
- | + | ||
- | ====== Mausunterstützung ====== | + | |
- | In tmux per Maus scrollen, Fenster wechseln, etc.: | + | |
- | <file raw ~/.tmux.conf> | + | |
- | # mouse support | + | |
- | set -g mouse on | + | |
- | </file> | + | |
====== Reloading tmux config ====== | ====== Reloading tmux config ====== | ||
Zeile 71: | Zeile 57: | ||
====== Distributed shell ====== | ====== Distributed shell ====== | ||
- | Eingabe in alle Fenster leiten: | + | have input in all panes: |
- | * ''<Strg>+b'' | + | * ''<Ctrl>+b'' |
:set synchronize-panes | :set synchronize-panes | ||
- | wieder ausschalten: | + | switch it off again: |
:set synchronize-panes off | :set synchronize-panes off | ||
- | ====== ''Strg+a'' statt ''Strg+b'' ====== | + | ====== ''Ctrl+a'' instead of ''Ctrl+b'' ====== |
<file> | <file> | ||
- | # Strg+a statt Strg+b | + | # Ctrl+a statt Ctrl+b |
set -g prefix C-a | set -g prefix C-a | ||
unbind-key C-b | unbind-key C-b | ||
Zeile 86: | Zeile 72: | ||
</file> | </file> | ||
- | ====== Dokumentation ====== | + | ====== documentation ====== |
* https://gist.github.com/MohamedAlaa/2961058 | * https://gist.github.com/MohamedAlaa/2961058 | ||
* http://man.openbsd.org/OpenBSD-current/man1/tmux.1 | * http://man.openbsd.org/OpenBSD-current/man1/tmux.1 | ||
* https://github.com/tmuxinator/tmuxinator | * https://github.com/tmuxinator/tmuxinator | ||
+ | |||