Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 multiseat Ubuntu setup and I need to identify which processes of a graphical application are running in each X.Org display.

For example, I have two X.Org displays, :0 and :1, and two instances of Firefox running, one on each display. How do I find the PIDs of the processes of Firefox running on display :0 only?

Neither ps -e nor ps -T helped me. In both cases, I have a single "?" in TTY column for my Firefox processes.

share|improve this question

You can use ps -e for everything

or ps -T for tty

Example snippit :

$ ps -T
17764 17764 pts/0    00:00:00 bash
17815 17815 pts/0    00:00:00 ps

consult man ps for additional information


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.