LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to Kill a Process in Linux (https://www.linuxquestions.org/questions/linux-general-1/how-to-kill-a-process-in-linux-4175637632/)

onebuck 09-02-2018 07:38 AM

How to Kill a Process in Linux
 
Hi,

How to Kill a Process in Linux;
Quote:

Have you ever faced the situation where you launched an application and suddenly while you are using the application it becomes unresponsive and unexpectedly crashes. You try to start the application again, but nothing happens because the original application process never truly shut down completely.Well it has happened to all of us at some point, hasn’t it? The solution is to terminate or kill the application process. But how?
Luckily, there are several utilities in linux that allows us to the kill errant processes.
Hope this helps.
Have fun & enjoy!
:hattip:

MadeInGermany 09-04-2018 06:06 PM

If you follow the "killall -9 firefox" example then you’ll have to learn how to recover from the "lock" files that firefox leaves behind, plus eventually corrupted sqlite files.
Correct is “killall firefox” - firefox will clean up and then terminate.
-9 (or -kill) is the very last resort, if all mormal kill fails.

onebuck 09-08-2018 09:37 AM

Member response
 
Hi,

I totally agree, sometimes miss-use or lack of knowledge create problems. Users should be sure to look at the 'man kill' and 'man killall' to hopefully understand what should be done.
Quote:

"Knowledge is of two kinds. We Know a subject ourselves, or we know where we can find information upon it."- Samuel Johnson
Hope this helps.
Have fun & enjoy!
:hattip:

pmv 09-09-2018 03:53 PM

pkill <process name>


All times are GMT -5. The time now is 09:37 PM.