How can I forcefully stop a process in ubuntu, like we can do from task manager in ubuntu. look its not the same question as you indicate here. I want a feature in ubuntu 15 which is just same as task manager in windows. i.e. not just kill a process but also do rest of the jobs of the task manager.
-
another very similar Q&A: http://askubuntu.com/questions/104903/how-do-i-kill-processes-in-ubuntu – Takkat Jun 27 '15 at 16:00
-
And what do you think Paranoid Panda's answer gives? – muru Jun 29 '15 at 14:05
4 Answers
If you mean in terminal you would need to run this command.
kill -9
kills processes instantlykill -9 <process id>
pkill
will allow you to use the process namepkill -9 <processname>
or if you have multiple processes running like say chrome you would do something like this
sudo killall -9 <process name>
Hope this helps answer your question

- 90,397

- 59
- 1
- 10
-
1Anyway, it's always better to try to kill the process with a
-TERM
(-15) signal before, and usingKILL
(-9) only if the former don't work. That will give the process a chance to clean up before exiting. – Rmano Jun 27 '15 at 15:14 -
ya true i just figured he was wanting it extremely forceful but thanks anyway – popcorn9499 Jun 27 '15 at 15:15
Launch the System Monitor by searching for it in the Unity dashboard:
Then make sure that you are in the Processes
tab:
Right-click on the process you wish to kill and select Kill
from the right-click menu:
Then click Kill
on the confirmation dialog that pops up:
Although it might be more advisable to select End
from the right-click pull-down menu, but it really depends on how unresponsive the process is.
If you prefer to kill by graphic interface, just open the Dash and type: System Monitor. Then, select the tab "Process". In that tab, click on the process that you want to stop and click at the "End Process" button, at the bottom of the window. Finally, confirm the finish process in the window that appear.

- 910
- 9
- 23
-
This only ends the processes, the OP said that they wanted to kill the process. – Jun 29 '15 at 14:06