Cheatsheet Pages / tmux Cheatsheet

How to kill the current tmux window — prefix &

This window's job is done and you want it closed without touching the rest of the session.

tmux's default prefix is Ctrl-b: “prefix c” means press Ctrl-b, let go, then press c. Every CLI command was run for real against tmux 3.4 in detached test sessions, and every prefix binding was checked against the default binding table.

# inside tmux: prefix & asks "kill-window <name>? (y/n)" — press y to confirm
tmux kill-window -t work:2        # no confirmation from the command line
# ⚠️ killing a window ends every pane and process inside it, shell included
tmux Cheatsheet one-page card — commands that actually work
The full one-page card — tmux Cheatsheet. Get the complete cheatsheet on GitHub