Difference between revisions of "Terminal Multiplexer"

From 6bit.ch wiki
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
= tmux =
= tmux =


== navigating ==
== creating, killing, listing, renaming ==
<code>Ctr-b leftarrow</code> move active window horizontally</br>
<code>Ctr-b rightarrow</code> move active window horizontally</br>
<code>Ctr-b uparrow</code> move active window vertically</br>
<code>Ctr-b downarrow</code> move active window vertically</br>
<code>Ctr-b pgup/pgdown</code> scroll up/down (window)</br>
<code>Ctr-b [ + arrow keys</code> scroll up/down (line)</br>
 
== listing, creating, renaming, killing ==
<code>tmux ls</code> list sessions</br>
<code>tmux ls</code> list sessions</br>
<code>tmux kill -t sessionname</code> kill tmux session with name $sessionname</br>
<code>tmux kill -t sessionname</code> kill tmux session with name $sessionname</br>
Line 15: Line 7:
<code>tmux rename -t sessionname newname</code> rename $sessionname to $newname</br>
<code>tmux rename -t sessionname newname</code> rename $sessionname to $newname</br>
<code>tmux attach -t sessionname</code> attach to $sessionname</br>
<code>tmux attach -t sessionname</code> attach to $sessionname</br>
<code>Ctr-b d</code> detach from session</br>
<code>Ctrl-b d</code> detach from session</br>
 
== navigating ==
<code>Ctrl-b leftarrow</code> move active window horizontally</br>
<code>Ctrl-b rightarrow</code> move active window horizontally</br>
<code>Ctrl-b uparrow</code> move active window vertically</br>
<code>Ctrl-b downarrow</code> move active window vertically</br>
<code>Ctrl-b pgup/pgdown</code> scroll up/down (window)</br>
<code>Ctrl-b [ + arrow keys</code> scroll up/down (line)</br>
 
== resizing ==
<code>Ctrl-b ALT + arrow_keys</code> resize active window</br>
<code>Ctrl-b z</code> toggle focus/fullscreen</br>
<code>Ctrl-b space</code> toggle orientation</br>


== spawning ==
== spawning ==
<code>Ctr-b %</code> spawn terminal horizontally</br>
<code>Ctrl-b %</code> spawn terminal horizontally</br>
<code>Ctr-b "</code> spawn terminal vertically</br>
<code>Ctrl-b "</code> spawn terminal vertically</br>
</br>
<code>Ctrl-b c</code> create new window</br>
<code>Ctrl-b 0..9</code> switch windows</br>
 
== Remove Delay after Ctrl b ==
in ~/.tmux.conf: <code>set -g repeat-time 0</code></br>
reload config: <code>tmux source-file ~/.tmux.conf</code>

Latest revision as of 17:38, 4 December 2025

tmux

creating, killing, listing, renaming

tmux ls list sessions
tmux kill -t sessionname kill tmux session with name $sessionname
tmux new -s sessionname create tmux session with name $sessionname
tmux rename -t sessionname newname rename $sessionname to $newname
tmux attach -t sessionname attach to $sessionname
Ctrl-b d detach from session

navigating

Ctrl-b leftarrow move active window horizontally
Ctrl-b rightarrow move active window horizontally
Ctrl-b uparrow move active window vertically
Ctrl-b downarrow move active window vertically
Ctrl-b pgup/pgdown scroll up/down (window)
Ctrl-b [ + arrow keys scroll up/down (line)

resizing

Ctrl-b ALT + arrow_keys resize active window
Ctrl-b z toggle focus/fullscreen
Ctrl-b space toggle orientation

spawning

Ctrl-b % spawn terminal horizontally
Ctrl-b " spawn terminal vertically

Ctrl-b c create new window
Ctrl-b 0..9 switch windows

Remove Delay after Ctrl b

in ~/.tmux.conf: set -g repeat-time 0
reload config: tmux source-file ~/.tmux.conf