PDA

View Full Version : how can i kill a non responding programm?


eighthate
September 1st, 2006, 12:02 PM
thanks

Anonii
September 1st, 2006, 12:05 PM
The best way if its a GUI application is to:

"ALT + F2" and call the program "xkill" then click on the bad program.

professor_chaos
September 1st, 2006, 12:35 PM
other ways for both gui and non-gui apps, is to kill the process by the name of the process, by using "killall" followed by the process name.

ex
killall gnome-panel

if you know the process id, or pid. For example, in the terminal you can type ps -aef. And you will get a list of processes running. You can then use the command kill to kill the process.

ex for a pid of 2893
kill -9 2893

Anonii
September 1st, 2006, 12:40 PM
other ways for both gui and non-gui apps, is to kill the process by the name of the process, by using "killall" followed by the process name.

ex
killall gnome-panel

if you know the process id, or pid. For example, in the terminal you can type ps -aef. And you will get a list of processes running. You can then use the command kill to kill the process.

ex for a pid of 2893
kill -9 2893
You can find the process id with the top command:
top
and check the PID section.

And then, as professor_chaos said, you can kill it with
kill -9 <PID>

Also, check "man top" for more info, if you like to learn more.

morrin
September 1st, 2006, 12:46 PM
ps x will get you a list of processes and ids. If you type in top, as mentioned above, you can simply type k and then you will see "PID to kill:" at the top. You can just give it the PID there or a -9 PID if it's not dying

john_markh
September 1st, 2006, 12:47 PM
1. First of all you will need to figure out the PID (process id) of none responding program
ps -a
2. Find your application in the list and kill it
kill 6922where 6922 is your process id

ayoli
September 1st, 2006, 01:36 PM
another nice way to use kill without run ps or top before:

kill -9 `pidof application_name`
replace application_name with the name of app you want to kill.
btw there is also an gnome applet named force quit which can be use to kill graphica apps by cliking on them.
regards.

jotagab
September 1st, 2006, 01:51 PM
If you want to avoid the command-line add the "Force Quit" to your panel:
-Mouse right-click
-Add to Panel...
-[Desktop & Windows] Force Quit

Then click on it, and then on the non-responding application (but beware, I think you can also kill the panel itself, or even Gnome).

jis
September 7th, 2006, 09:01 AM
Is there a "Force Quit" equivalent for Xfce?

slimdog360
September 7th, 2006, 09:05 AM
my favourite way is pressing ctrl+alt+esc you get a cool skull and crossbones

ayoli
September 7th, 2006, 09:44 AM
my favourite way is pressing ctrl+alt+esc you get a cool skull and crossbones

seems that it doesnt work here.

jis
September 7th, 2006, 10:44 AM
ctrl+alt+esc works in Xubuntu, too. Thanks for the hint.

I used Settings -> Menu Editor to add the "Kill Program" (xkill) below "Run Program" in the Applications menu. I wish I could use the cool skull and crossbones as an icon for that item. (Checking "Use startup notification" seems to have no effect.)