tmux
tmux new -s [session-name]
tmux attach
tmux attach -t [session-name]
Ctrl+b
, d
] tmux kill-session -t [session-name]
接下來的操作皆已進入tmux內。和screen類似,在screen
中所有指令都是以Ctrl + a
開始。[[BR]]
而在tmux
內,所有指令都是以Ctrl + b
開始:
Ctrl+b
, c
Ctrl+b
n
移動到下個視窗(next)
Ctrl+b
p
移動到上個視窗(previous)
Ctrl+b
&
: 關閉目前的window
Ctrl+b
%
Ctrl+b
"
Ctrl+b
, x
Ctrl+b
o
Ctrl+b
q