Resize, Zoom, and Close Panes in tmux

From the tmux cheat sheet · Panes · verified Aug 2026

Resize, Zoom, and Close Panes

Adjust pane space or focus on one pane.

bash
# Ctrl-b z  toggle zoom
# Ctrl-b x  kill pane
⚡ Zoom keeps the layout while focusing one pane
⚠️ Ctrl-b x asks before killing the pane
💡 Exit the shell for a normal pane shutdown
🔍 resize-pane accepts direction and cell count
panesresizezoomclose

Continue with tmux

Save the full cheat sheet or work through every related task.

More tmux tasks

Back to the full tmux cheat sheet