Home Tmux How To Zoom Tmux Panes For Better Text Visibility In Linux

How To Zoom Tmux Panes For Better Text Visibility In Linux

By sk
Published: Last Updated on 21.6K views

I have been using GNU Screen and Tmux terminal multiplexers for many years now. They comes in handy when performing different tasks in multiple terminal windows simultaneously. Today I learned one of the useful feature of Tmux - Zooming panes. Yes, we can zoom Tmux panes to fit them into the full size of current Terminal window for better text visibility and for viewing more of its contents.

It is useful when you need more space or  focus on a specific task. After finishing that task, you can zoom out (unzoom) the Tmux pane back to its normal position or size.

Zoom in and Zoom out Tmux panes

First launch a tmux session by running the following command in your Terminal:

$ tmux

Now split the Tmux session window into two or more windows named panes. You can split the tmux session window either vertically or horizontally.

To split a Tmux session horizontally, press Ctrl+b and (single quotation mark). You don't need to press both keystrokes simultaneously. First press Ctrl+b and then press ".

Similarly, to split a pane vertically, press Ctrl+b and %.

We can also split the session windows both horizontally and vertically at the same time.

For the purpose of this guide, I split the session in vertical and ran "top" command in the left pane and "uname" command on the right pane as shown in the below screenshot.

Split tmux session
Split tmux session

Now, I am going to zoom the left pane which has top command running. To do so, switch to left pane and press <Tmux prefix> and z. The tmux prefix command is Ctrl+b, so I type Ctrl+b followed by z to zoom the pane. It is that simple!

Note: To switch between panes, press Ctrl+b and Arrow keys (Left, Right, Up, Down).

Here is the animated video shows zooming tmux panes.

Zoom in and zoom out tmux panes
Zoom in and zoom out tmux panes

To zoom out the Tmux pane, simply press "Ctrl+b" and "z" again.

More details on Tmux options can be found in Tmux man pages.

$ man tmux

Hope this helps.

You May Also Like

1 comment

Dude June 16, 2020 - 1:34 pm

Nice. Clean and simple. Thanks


Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More