Cheatsheet: tmux

Last updated 2026-06-21

Sessions

Start a new unnamed session

tmux

Start a named session

tmux new -s work

List sessions

tmux ls

Attach to a named session

tmux attach -t work

Detach from inside tmux

Ctrl-b d

Rename the current session

Ctrl-b $

Kill a named session

tmux kill-session -t work

Windows

Create a new window

Ctrl-b c

Switch to the next window

Ctrl-b n

Switch to the previous window

Ctrl-b p

Choose a window from a list

Ctrl-b w

Rename the current window

Ctrl-b ,

Close the current window

Ctrl-b &

Panes

Split the current pane vertically

Ctrl-b %

Split the current pane horizontally

Ctrl-b "

Move to another pane

Ctrl-b arrow-key

Cycle through panes

Ctrl-b o

Resize the current pane

Ctrl-b Ctrl-arrow-key

Zoom the current pane

Ctrl-b z

Close the current pane

Ctrl-b x

Copy mode and prefix

Enter copy mode

Ctrl-b [

Paste copied text

Ctrl-b ]

Show available key bindings

Ctrl-b ?

Send the prefix key through to a nested tmux session

Ctrl-b Ctrl-b

Default tmux prefix key

Ctrl-b

See also: