Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just resized a pane using by holding leader (C-b) and using up/down arrow keys. I know I could just use percentages, but it would be handy if tmux told me the sizing of current layout.

share|improve this question
up vote 2 down vote accepted

In tmux 1.7 and later you can extract the pane dimensions like this:

tmux display -p -t s:0.1 '#{pane_width}x#{pane_height}'

Check out the man page for all the variations that “target-pane” supports (s:0.1 above means pane 1 of window 0 of the session named “s”) and the list of all the other “format” variables (the #{…} bits).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.