Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

You can use ps -e for everything

or ps -T for tty

Example snippit :

$ ps -T
  PID  SPID TTY          TIME CMD
17764 17764 pts/0    00:00:00 bash
17815 17815 pts/0    00:00:00 ps

consult man ps for additional information

source

share|improve this answer

Your Answer

 
discard

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.