LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Force Quitting (https://www.linuxquestions.org/questions/linux-newbie-8/force-quitting-298980/)

RichMan1 03-07-2005 10:59 PM

Force Quitting
 
Dear All:

Is there a force quit-type keystroke for FC3? CTRL+ALT+DEL only does Logout/Restart/Shutdown, and I wanted to close Firefox because it was being a bad boy and not responding. Is it normal for Linux to conk out on a program every once in a while?

Sincerely,
Richard

ksgill 03-07-2005 11:05 PM

open console/shell and type:
ps -aux
It will give u a list of running programs. Find firefox or whatever the program is that you want to shutdown. and issue this command:
kill <pid>
For example, in my ps -aux:
user 5638 0.0 0.1 3492 996 ? S 00:46 0:00 /bin/sh /home/user/.firefox/firefox
kill 5638 will kill my firefox process.

win32sux 03-07-2005 11:09 PM

ALT+F4 might work, but the best way is to do a "ps aux" and get the process number for it and then "kill" it... for example, if your firefox's process number was 4477 you could do a:

Code:

kill 4477
if that doesn't work try:

Code:

kill -9 4477
if you don't wanna look for the process number you could try a:

Code:

killall firefox
and no, it's not normal for your programs to be crashing/freezing - that's a sign that something is wrong...


mirradric 03-07-2005 11:21 PM

Re: Force Quitting
 
Quote:

Originally posted by RichMan1
Is there a force quit-type keystroke for FC3? CTRL+ALT+DEL only does Logout/Restart/Shutdown, and I wanted to close Firefox because it was being a bad boy and not responding.
Each window manager may have it's own key stroke or program to kill off bad programs. For example, in WindowMaker, you can right-click the window menu and chose the kill command. You can also try xkill which allows you to select the window of the program to kill. Sometimes the kill might miss some process related to the program. ps + kill still gives you the most control though.


All times are GMT -5. The time now is 03:19 AM.