tmux is a program which runs in a terminal and allows multiple other terminal programs to be run inside it
- Work with multiple programs and shells together in one terminal, a bit like a window manager.
-
tmux server: tmux keeps all its state in a single main process, called the tmux
server
. -
tmux client:
- Users attach to the tmux
server
by starting aclient
- Attaches a tmux
session
from an outsideterminal
such as xterm(1)
- Users attach to the tmux
- Session: Groups 1+
windows
together - Window: Groups 1+
panes
together, linked to 1+sessions
- Pane: Contains a
terminal
and running program, appears in onewindow
C-b ?
Tip
What does C-b ?
mean?
It means:
- Press
Ctrl
andb
- Then press
?
(It'sShift
+/
)
Tip
How to exit the help menu of Tmux?
Press q
tmux
C-b d
tmux new -s SESSIONNAME
tmux ls
tmux attach
C-B c
C-B w
tmux kill-session -t SESSIONNAME
Hold Shift
/ Select text (with mouse) / Ctrl + Shift + C
/ Ctrl + Shift + V