MENU

Tmux

April 17, 2020

Install

brew install tmux
sudo apt-get install tmux
yum install tmux

Sessions


Start a new session

tmux
tmux new
tmux new-session
:new

Start a new session with the name mysession

tmux new -s mysession
:new -s mysession

Show all sessions

tmux ls
tmux list-sessions
Ctrl + b s

Attach to last session

tmux a
tmux at
tmux attach
tmux attach-session

Attach to a session with the name mysession

tmux a -t mysession
tmux at -t mysession
tmux attach -t mysession
tmux attach-session -t mysession

Move to previous session

Ctrl + b (

Move to next session

Ctrl + b )

Rename session

Ctrl + b $

Detach from session

Ctrl + b d

Detach others on the session (Maximize window by detach other clients)

:attach -d

Windows


新建 window

Ctrl + b c

Next window

Ctrl + b n

Previous window

Ctrl + b p

Panes

激活上次pane

Ctrl + b ;

垂直分割

Ctrl + b %

水平分割

Ctrl + b "

显示pane编号

Ctrl + b q

Copy Mode


Misc


help


Show every session, window, pane, etc...

tmux info

Show shortcuts

Ctrl + b ?
Leave a Comment