Skip to content

Session Control (from the command line)

tmux Start a new session
tmux new -s <session-name> Start a new session with the name chosen
tmux ls List all sessions
tmux attach -t <target-session> Re-attach a detached session
tmux attach -d -t <target-session> Re-attach a detached session (and detach it from elsewhere)
tmux kill-session -t <target-session> Delete session

Pane Control

Ctrl b" Split pane horizontally
Ctrl b% Split pane vertically
Ctrl bo Next pane
Ctrl b; Previous pane
Ctrl bq Show pane numbers
Ctrl bz Toggle pane zoom
Ctrl b! Convert pane into a window
Ctrl bx Kill current pane
Ctrl bCtrl O Swap panes
Ctrl bt Display clock
Ctrl bq Transpose two letters (delete and paste)
Ctrl b{ Move to the previous pane
Ctrl b} Move to the next pane
Ctrl bSpace Toggle between pane layouts
Ctrl b Resize pane (make taller)
Ctrl b Resize pane (make smaller)
Ctrl b Resize pane (make wider)
Ctrl b Resize pane (make narrower

Window Control

Ctrl bc Create new window
Ctrl bd Detach from session
Ctrl b, Rename current window
Ctrl b& Close current window
Ctrl bw List windows
Ctrl bp Previous window
Ctrl bn Next window

Copy-Mode (vi)

Ctrl b[ Enter copy mode
Ctrl bG Bottom of history
Ctrl bg Top of history
Ctrl bEnter Copy selection
Ctrl bp Paste selection
Ctrl bk Cursor Up
Ctrl bj Cursor Down
Ctrl bh Cursor Left
Ctrl bl Cursor Right