A split tmux window can make an editor, log view, or command output hard to read when each pane has only a small part of the terminal. Zooming temporarily expands the active pane to fill the window while the other panes stay alive and hidden behind it.
The default zoom binding is C-b z when the prefix is still C-b. It runs resize-pane -Z, which toggles the active pane between the full-window zoomed view and its original place in the layout.
A zoomed window shows the tmux zoom flag, and the same state can be checked with window_zoomed_flag. The command examples were verified with tmux 3.6 on Ubuntu 26.04; commands that resize, split, swap, or otherwise change pane positions can unzoom the window automatically.
Related: How to resize panes in tmux
Need another pane first: How to split a pane horizontally in tmux or How to split a pane vertically in tmux.
C-b q
The zoom command affects the active pane.
Related: How to select a pane in tmux
1
Replace 1 with the pane number shown by tmux.
C-b z
The pane expands to fill the tmux window. The other panes are hidden from view but their programs keep running.
C-b : resize-pane -Z
The command-prompt form toggles zoom for the active pane, just like the default C-b z binding.
Related: How to use the tmux command prompt
$ tmux resize-pane -Z -t zoomdemo:0.0
Replace zoomdemo:0.0 with the target pane. The format is session:window.pane, so this example means pane 0 in window 0 of session zoomdemo.
$ tmux display-message -p -t zoomdemo:0 '#{window_panes} panes zoomed=#{window_zoomed_flag}'
2 panes zoomed=1
The zoomed=1 field confirms that one pane is filling the window while the window still has two panes.
C-b z
Running resize-pane -Z a second time performs the same unzoom action.
$ tmux display-message -p -t zoomdemo:0 '#{window_panes} panes zoomed=#{window_zoomed_flag}'
2 panes zoomed=0
The zoomed=0 field confirms that tmux returned to the normal split-pane layout.