Window ManagementPrefix + &
kill-window
Short form: killw
Kill the current window or the window specified by -t, and all panes within it.
Synopsis
bash
tmux kill-window [-a] [-t target-window]Options
| Flag | Description |
|---|---|
| -a | Kill all windows except the one specified by -t |
| -t target-window | Specify which window to kill |
Examples
Kill current window
bash
tmux kill-windowKill window 2
bash
tmux killw -t 2Kill all windows except current
bash
tmux killw -aDefault Keybinding
Prefix + &
Default prefix is Ctrl+b
Pro Tips
- •You'll be prompted for confirmation with Prefix + &
- •Consider using kill-pane if you only want to close one pane