tmux
- creates a new sessiontmux new-session
- also creates a new sessiontmux new-session -s foo
- creates a new session named footmux new -s foo
- also creates a new session named foo
PREFIX d
PREFIX $
tmux list sessions
tmux ls
PREFIX s
tmux attach
- attach to most recently used sessiontmux attach -t foo
- attach to session named foo
tmux kill-session -t foo
PREFIX c
- creates a session within a running tmux session
PREFIX n
- next windowPREFIX p
- previous windowPREFIX 0
- jump to window 0 (works with any digit 0-9)PREFIX f
- find window (by name)PREFIX w
- choose window from a list
PREFIX &
- prompt to close current window
PREFIX ,
- prompt to name current window
PREFIX %
- split verticallyPREFIX "
- split horizontally
PREFIX o
- next panePREFIX <arrow key>
- switch to pane above, below, to the left, or to the right
even-horizontal
even-vertical
main-horizontal
main-vertical
tiled
You can cycle through these PREFIX <spacebar>
PREFIX C-o
- rotate the panes in the current window forwardsPREFIX M-o
- rotate the panes in the current window backwards
PREFIX x
PREFIX !
In command mode (PREFIX :
):
join-pane -s [session-name]:[window-number].[pane-number]
PREFIX z
- this toggles the zoomed state
PREFIX :
- enter command mode
Within command mode, you can issue commands:
new-window -n bar
- create a new window called barnew-window -n bar "top"
- create a new window called bar and executetop
-
PREFIX [
- enter Copy Mode.within Copy Mode, you can:
ENTER
- exit Copy ModeSPACE
- start a selection at the current cursor position
CONTROL-B
- back a pageCONTROL-F
- forward a page