>cheatref
tmux
> tmux/windows

> windows

15 commands for tmux windows

// windows

15 commands
start a new session with the name mysession and window mywindow
$ tmux new -s mysession -n mywindow
Create window
Ctrl + bc
Rename current window
Ctrl + b,
Close current window
Ctrl + b&
Previous window
Ctrl + bp
Next window
Ctrl + bn
Switch/select window by number
Ctrl + b0...9
Toggle last active window
Ctrl + bl
Prompt for a window index to select
Ctrl + b'
Find window by name
Ctrl + bf
Move current window to a specific index
Ctrl + b.
Reorder window, swap window number 2(src) and 1(dst)
: swap-window -s 2 -t 1
Move current window to the left by one position
: swap-window -t -1
Move window to another session
: move-window -s src_ses:win -t target_ses:win
Renumber windows to remove gap in the sequence
: move-window -r

// categories

> sessions> windows> panes> copy mode> misc> help
> view all tmux commands

// categories

> sessions> windows> panes> copy mode> misc> help

// back to tmux commands

> view all tmux commands

> cheatref.com — simple and minimal cheat sheets

AboutPrivacy© 2026 goyostudio