tmux¶
Installation¶
sudo pacman -S tmux
sudo apt install -y tmux
Usage¶
Keyboard Shortcuts¶
By default, command key bindings are prefixed by Ctrl B.
Session management¶
Command |
Shortcut |
|---|---|
Detach from session |
D |
Move to next session |
( |
Move to previous session |
) |
Rename session |
$ |
Session and Window Preview |
W |
Window management¶
Command |
Shortcut |
|---|---|
Close current window |
& |
Create window |
C |
List windows |
W |
Next window |
N |
Previous window |
P |
Rename current window |
, |
Select window by number |
0…9 |
Toggle last active window |
L |
Panes¶
Command |
Shortcut |
|---|---|
Convert pane into a window |
! |
Move the current pane left |
{ |
Move the current pane right |
} |
Resize current pane |
Ctrl B + Up |
Show pane numbers |
Q |
Split the current pane with a horizontal line to create a vertical layout |
" |
Split the current pane with a vertical line to create a horizontal layout |
% |
Switch to next pane |
O |
Switch to pane to the direction |
Up |
Switch/select pane by number |
q 0…9 |
Toggle last active pane |
; |
Toggle pane zoom |
Z |