Skip to main content
Back to Commands
Pane ManagementPrefix + arrow keys, or Prefix + o to cycle

select-pane

Short form: selectp

Select a pane. Various flags allow selecting panes by direction or marking them.

Synopsis

bash
tmux select-pane [-DdeLlMmRUZ] [-T title] [-t target-pane]

Options

FlagDescription
-DSelect pane below
-USelect pane above
-LSelect pane to the left
-RSelect pane to the right
-lSelect last (previously active) pane
-mMark the current pane
-MClear the marked pane
-t target-paneSelect specified pane

Examples

Select pane to the left

bash
tmux select-pane -L

Select pane below

bash
tmux selectp -D

Select pane 1

bash
tmux selectp -t 1

Select last active pane

bash
tmux selectp -l

Default Keybinding

Prefix + arrow keys, or Prefix + o to cycle

Default prefix is Ctrl+b

Pro Tips

  • Prefix + o cycles through panes in order
  • Prefix + ; goes to the last active pane
  • Consider vim-tmux-navigator for seamless vim integration