Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Here's my .screenrc:

defscrollback 5000

vbell on
vbell_msg "   dierre!!!  ----  Wuff!!  "

screen -t GRINDER ssh dierre@grinder.dierre.lan
screen -t TRUNK

attrcolor b ".I"
termcap xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"

# caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
# hardstatus alwaysignore
hardstatus alwayslastline '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}[%{W}%n%f %t%?(%u)%?%{=b kR}]%{= kw}%?%+Lw%?%?%= %{g}]%{=b C}[ %D %m/%d %C%a ]%{W}'

This will open two screen(s). The next step I have to do is:

  1. Ctrl+A -> S to split the screen
  2. Ctrl+A -> \t to go the the empty screen
  3. Ctrl+A -> " to open the screen list

Now I can choose the other screen and therefore I have a terminal with two splitted screen.

Is there a way to create a macro for this? Really annoying to do it every time.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Add at the end of your .screenrc the following lines:


To run multiple command, each in a separated split window:

screen -t title1 app1
screen -t title2 app2
screen -t title3 app3

and so on.

share|improve this answer
can you generalize the answer for n screens? – dierre Mar 26 '12 at 9:53
@dierre: do you mean: start n apps, split the screen, go to the empty screen and choose one of the n running apps? – enzotib Mar 26 '12 at 10:02
I start n apps, I want all n apps in a screen splitted in n – dierre Mar 26 '12 at 10:06

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.