How to kill a process in Ububtu

Open your Terminal.

Type in : ps -aef | grep application name

Then you will get a process number. All you have to do is get that number and then use it as:

kill process-number

Thats how you kill a process in Ubuntu. Easy isn’t it ?

I am writing this because I’ve had to kill a process. This specially happens to me when I accidentally (tripped over some wires) kill power to my system. And when I restart it, some processes do not boot up, as they haven’t been shut down properly. If killing the process does not work, then restart your machine and hope for the best. :)

Here is an example of how you would go about killing a Firefox instance.

sasidhar@sasidhar$ : ps -aef | grep firefox
firefox 1453
sasidhar@sasidhar$ : kill 1453


About this entry



If you are new to my site, you can subscribe to my feed here.