Skip to main content
Back to Commands
Window ManagementPrefix + 0-9, Prefix + n/p, Prefix + l

select-window

Short form: selectw

Select a window. The window becomes the current window in its session.

Synopsis

bash
tmux select-window [-lnpT] [-t target-window]

Options

FlagDescription
-lSelect last window
-nSelect next window
-pSelect previous window
-t target-windowSelect specified window

Examples

Select window 0

bash
tmux select-window -t 0

Select next window

bash
tmux selectw -n

Select last used window

bash
tmux selectw -l

Default Keybinding

Prefix + 0-9, Prefix + n/p, Prefix + l

Default prefix is Ctrl+b

Pro Tips

  • Prefix + 0-9 is the fastest way to switch windows
  • Prefix + l switches to the last window (toggle)