commands

commandaction
tmux, tmux new, tmux new-sessioncreate a new session
tmux new -s {name}create a new session with {name} as a name
tmux a, tmux att, tmux attach, tmux attach-sessionattach to an existing session
tmux a -t {name}attach to an existing session with {name} as a name
tmux kill-seskill existing session
tmux kill-session -t {name}kill existing session with {name} as a name

keybindings

sessions

keybindingaction
ctrl-b-$rename current session
ctrl-b-ddetach from current session
ctrl-b-)switch to next session
ctrl-b-(switch to previous session

windows

keybindingaction
ctrl-b-ccreate a new window
ctrl-b-{n}move to {n}th window
ctrl-b-nmove to next window
ctrl-b-pmove to previous window
ctrl-b-lmove to last used window
ctrl-b-'move to window by name
ctrl-b-.change window number
ctrl-b-,rename window
ctrl-b-&kill current window
ctrl-b-wlist windows

panes

keybindingaction
ctrl-b-%vertical split
ctrl-b-"horizontal split
ctrl-b-{arr-r}move to pane to the right
ctrl-b-{arr-l}move to pane to the left
ctrl-b-{arr-u}move up to pane
ctrl-b-{arr-d}move down to pane
ctrl-b-omove to next pane
ctrl-b-;move to last active pane
ctrl-b-}move pane right
ctrl-b-{move pane right
ctrl-b-!convert pane to window
ctrl-b-xkill current pane

copy mode

icp - in copy mode

keybindingsaction
ctrl-b-[enter copy mode
ctrl-b-]paste from buffer
icp spacestart selection
icp entercopy selected text
icp escclear selection
icp ggo to top
icp Ggo to bottom
icp h, arr-lmove cursor left
icp j, arr-dmove cursor down
icp k, arr-umove cursor up
icp l, arr-rmove cursor right
icp /search
icp #list paste buffers
icp qquit copy mode