Skip to main content
Back to Commands
Pane ManagementPrefix + Ctrl+arrow, Prefix + z (zoom)

resize-pane

Short form: resizep

Resize a pane, either by a specified amount or to an absolute size.

Synopsis

bash
tmux resize-pane [-DLMRUZ] [-t target-pane] [-x width] [-y height] [adjustment]

Options

FlagDescription
-DResize down
-UResize up
-LResize left
-RResize right
-ZToggle zoom (fullscreen)
-x widthSet absolute width
-y heightSet absolute height

Examples

Resize down by 5 cells

bash
tmux resize-pane -D 5

Resize right by 10 cells

bash
tmux resizep -R 10

Set width to 80 columns

bash
tmux resizep -x 80

Toggle zoom (fullscreen)

bash
tmux resizep -Z

Default Keybinding

Prefix + Ctrl+arrow, Prefix + z (zoom)

Default prefix is Ctrl+b

Pro Tips

  • Prefix + z toggles zoom (fullscreen) - very useful for focusing
  • Hold Prefix and press arrow keys repeatedly to resize