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

Let's say you have two monitors hooked up to the same machine, running gnome (let's call them 'A' and 'B'). Each has its own, independent x-screen.

Our goal is to type a command into a terminal on Monitor A and have that command open an application on Monitor B.

Is there an easy X-command that lets that happen?

share|improve this question
up vote 1 down vote accepted

Assuming the first display is :0 and the second is :1 then typing

DISPLAY=:1 <command>  

should be enough to get the command to run on the second window.

This will make all subsequent apps run from the terminal session open in the second window:

export DISPLAY=:1 
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.