Skip to main content
Back to Commands
Pane ManagementPrefix + x

kill-pane

Short form: killp

Destroy the current pane or the pane specified by -t.

Synopsis

bash
tmux kill-pane [-a] [-t target-pane]

Options

FlagDescription
-aKill all panes except the specified one
-t target-paneSpecify which pane to kill

Examples

Kill current pane

bash
tmux kill-pane

Kill pane 1

bash
tmux killp -t 1

Kill all panes except current

bash
tmux killp -a

Default Keybinding

Prefix + x

Default prefix is Ctrl+b

Pro Tips

  • Prefix + x prompts for confirmation
  • If it's the last pane, the window closes