How to kill a process

Asked by Tod Anderson

Here is a question: Say Google Chrome freezes and I want to kill/stop process with a keycombo instead of going through system monitor. Is there a way to do that?

If there is, is there a way to do it with a selected window?
Example: Chrome and Word are open. Chrome is on top and selected. I push key combo and chrome's process ends. I select Word window and do the same key combo and the Word process ends.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Miha Gašperšič (miha.gaspersic) said :
#1

Hi Tod,

you can use your terminal to stop some process. Let's see if we want to stop Chrome you need to run this commands in terminal (CTRL+ALT+T):
- pidof chrome (output of terminal should return you some numbers)
- kill <numbers> (instead of <numbers> you should put number from the upper command which you run just before and app should exit)

If that helps you solve your question, please mark thread as solved.

Regards,
Miha

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

You can also press ALT+F2 and run:

xkill

and click on the app you want to end. You can use compiz commands to make your own shortcuts to run commands. If you are having to kill apps a lot I'd suspect bad settings or faulty hardware (RAM especially)

Revision history for this message
Emmanuel Thomas-Maurin (manu-tm) said :
#3

Also:
'killall chrome'
(with program name instead of pid)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Or:

killall chromium-browser

If you use the open source version.

Can you help with this problem?

Provide an answer of your own, or ask Tod Anderson for more information if necessary.

To post a message you must log in.