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
| Flag | Description |
|---|---|
| -l | Select last window |
| -n | Select next window |
| -p | Select previous window |
| -t target-window | Select specified window |
Examples
Select window 0
bash
tmux select-window -t 0Select next window
bash
tmux selectw -nSelect last used window
bash
tmux selectw -lDefault 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)