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
| Flag | Description |
|---|---|
| -a | Kill all panes except the specified one |
| -t target-pane | Specify which pane to kill |
Examples
Kill current pane
bash
tmux kill-paneKill pane 1
bash
tmux killp -t 1Kill all panes except current
bash
tmux killp -aDefault Keybinding
Prefix + x
Default prefix is Ctrl+b
Pro Tips
- •Prefix + x prompts for confirmation
- •If it's the last pane, the window closes