terminal multiplexer
man tmux
- Home : https://tmux.github.io/
- Manual : http://man.openbsd.org/OpenBSD-current/man1/tmux.1
- My config files :
- .tmux.conf on macOS
- .tmux.conf on Linux
- Related command : screen
^ q
Prefix Key ( aka Pf
)
- The description
Pf, *
implies that tapPf
at first and then tap the key*
. Pf, ⇧ ?
List KeysPf, d
Detach Client ( Detach Session )Pf, c
New WindowPf, ,
Rename WindowPf, $
Rename SessionPf, s
Reload config file.tmux.conf
Pf, \
Split Window HorizontallyPf, -
Split Window VerticallyPf, ^ y
Resize Pane LfPf, ^ u
Resize Pane DnPf, ^ i
Resize Pane UpPf, ^ o
Resize Pane RgPf, h
Select Lf PanePf, j
Select Dn PanePf, k
Select Up PanePf, l
Select Rg PanePf, ↑
Maximize Current Pane in New WindowPf, ↓
Put Current Pane back to its Parent WindowPf, [
Use Vim-like keys to copy str at Copy Mode
In Copy Mode:
v
Begin Selectiony
Copy Selectionu
Copy Selection & Exit Copy Mode⇧ L
Copy Line ( & Exit Copy Mode )
List
$ tmux list-sessions
0: 6 windows (created Mon Sep 3 09:30:05 2018) [130x65]
Attach
tmux attach-session -t <session_number>
# e.g.
tmux attach-session -t 0