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

Suppose the GUI applications are not given names in its GUI, so you don't know what to check in 'ps -A', i.e. the nameless applications in the task bar. How do I know which GUI application belong to what process and start debugging its errors (i.e. GUI frozen, program crash...)? With CLI applications, I can use attach the process to GDB and start investigating it.

share|improve this question
Have a look at how to get the pid of a window – Ulrich Dangel Aug 11 '12 at 19:29

To search for a specific PID i would invoke pstree -p which visualize the relation of processes. With this it's mostly possible to narrow down all eligible processes.

This approach assumes that the window in question is at least a child of a process that you are aware of.

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.