tmux
Tutorial
Session
tmux
: Create new sessiontmux ls
: List sessionstmux a -t <session name>
: Re-attach sessionCtrl + b + d
: Detach current sessionCtrl + b + $
: Rename session
Window
Ctrl + b + c
: Create new windowCtrl + b + n
: Switch to next windowCtrl + b + p
: Switch to previous windowCtrl + b + ,
: Rename window
Pane
Ctrl + b + %
: Split current window to two pane verticallyCtrl + b + "
: Split current window to two pane horizontallyCtrl + b + arrow-key
: Resize pane
Command prompt mode
Ctrl + b + :
: Into command prompt mode
move-window -t <number>
: Only works if position <number> is emptyswap-window -t <number>
: Swap to <number> window