Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If program crashes , How can I find the id of this program? . I do not the name of the unresponsive program.

share|improve this question
add comment

2 Answers 2

There are a several ways ways.

First, download and run 'htop' from inside a terminal. You can sort processes by CPU usage - if you have a process not responding, often these will be chugging CPU like none other.

Alternately, try running 'ps -A' in a terminal. This will give you a list of processes, and if you have a general idea of what the process is, you can then see its PID and thus kill it.

Finally, and probably most usefully, if the unresponsive program is a graphical program, and you just want to kill it rather than find outs its PID, run 'xkill' from the alt-f2 popup. This will turn your cursor into a skull and crossbones, and if you just click the unresponsive window it will be killed instantly.

share|improve this answer
    
why not just hack top into the terminal. it is installed on every unix and lists the pid. –  matthias krull Aug 30 '10 at 21:14
    
many people don't know how to use top, or find it unpleasant or scary. 'htop' is similar, except much easier to navigate. Although I agree, if you're up to it, 'top' is a good bet as well –  Mala Aug 31 '10 at 5:47
add comment

you can use task manager. When you pull it up, right click on the unresponsive program and then click "go to process" Then by clicking "view" then "Select Columns" you can add the column PID. Then determine the PID from that.

share|improve this answer
    
If you check the tags of the question, he's asking how to do this in Linux/Unix, and ideally from the command-line. There isn't really a "standard" graphical task manager in Linux/Unix. Which task manager are you referencing? –  Mala Aug 29 '10 at 1:13
    
Wow didn't check tags. I assumed he was in windows. –  KronoS Aug 29 '10 at 1:27
add comment

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.