Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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 have a few long running commands that I would like to run together in the same screen (same tab in the terminal app).

My current setup is like this:

tmux new-session -d 'cmd1'
tmux split-window 'cmd2'
tmux split-window 'cmd3'
tmux attach

However, it seems that tmux split-window actually splits the last split, so if I run several command this way, the first command gets half the screen, and the other commands get progressively smaller and smaller parts.

Is there a simpler way that runs all commands in equal-sized splits?

share|improve this question
not sure if tmux does the same thing as terminator, but if it does check that out, it's brilliant. – Sirex Jul 1 '11 at 21:07
up vote 6 down vote accepted

Just add the following command before your tmux attach

tmux select-layout even-vertical
share|improve this answer
+1 for turning around and sharing what you just learned :) – Caleb Jul 1 '11 at 20:02
Awesome! thanks :D – hasen Jul 2 '11 at 4:56

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.