How to deal with not responding programs

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
User avatar
Kyowash
Level 2
Level 2
Posts: 94
Joined: Mon Sep 25, 2017 1:22 pm
Location: /dev/full

How to deal with not responding programs

Post by Kyowash » Fri Oct 27, 2017 2:24 pm

Rarely a process/program will not respond and the only way to fix it is to terminate it.
First you must know the process PID, an unique number to identify processes. Run the following command to show all currently running processes to find out its PID:

Code: Select all

ps aux
The process' PID is the second column. Now imagine that Firefox stopped working and its PID is 1234. To kill it, run:

Code: Select all

kill 1234
This sends a TERM signal to the process which asks it to close. However, if it's really, really not responding and it doesn't close, you must force the process to terminate sending it a KILL signal, which can be done running the following command:

Code: Select all

kill -9 1234
There are more signals you can send to a process and their behavior is explained in the signal manual page.

User avatar
catweazel
Level 16
Level 16
Posts: 6319
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: How to deal with not responding programs

Post by catweazel » Fri Oct 27, 2017 9:24 pm

A simpler way is:

Code: Select all

pkill <name>
No esoteric numbers required.

For example, pkill firefox.
There are no silly questions, but there are silly answers.

User avatar
phd21
Level 16
Level 16
Posts: 6564
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: How to deal with not responding programs

Post by phd21 » Sat Oct 28, 2017 12:38 am

Hi "Kyowash" and "Catweasel",

Thanks for posting this for those that do not already know this.

FYI-1: My KDE systems have always had a key combination to Kill an unresponsive applications, Ctrl+Alt+Esc. This changes the cursor to the Kill application cursor (Pirate cursor) and you just click on the Titlebar (anywhere in the application window really) of the application you want to stop. If I am not mistaken, all Linux Mint editions can assign a Key combination to do the same thing. Hit ESC to not kill anything...

FYI -2: There are other posts on this in this forum already.

[SOLVED] Close Unresponsive Programs
viewtopic.php?f=47&t=218738&hilit=pirat ... r&start=20

Force Quit Keyboard Shortcut (You can use pkill or xkill, etc...)
https://community.linuxmint.com/tutorial/view/30

FYI-3: If your system is locked up, hold down "Alt+PrintScreen" and type reisub and your system still will restart immediately. hold down "Alt+PrintScreen" and type reisud and your system still will shutdown immediately.

7 Different Ways To Kill Unresponsive Programs in Linux
http://www.makeuseof.com/tag/6-differen ... -in-linux/



Hope this helps ...
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

User avatar
catweazel
Level 16
Level 16
Posts: 6319
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: How to deal with not responding programs

Post by catweazel » Sat Oct 28, 2017 1:17 am

phd21 wrote:Hi "Kyowash" and "Catweasel",

Thanks for posting this for those that do not already know this.

FYI-1: My KDE systems have always had a key combination to Kill an unresponsive applications, Ctrl+Alt+Esc.
Try that and accidentally click the desktop instead of an application :mrgreen:
There are no silly questions, but there are silly answers.

User avatar
Faust
Level 4
Level 4
Posts: 382
Joined: Thu Jul 14, 2016 3:40 am

Re: How to deal with not responding programs

Post by Faust » Sat Oct 28, 2017 2:31 am

I've always liked the xkill command .... heck , I even like the name of it !

Line up the culprit in the cross-hairs and pull the trigger !

( Actually , it's just point and click , but that doesn't sound nearly so exciting , does it :D )
" And so it goes " - Kurt Vonnegut
The modern reality and the satirical parody are rapidly converging .

aes2011
Level 4
Level 4
Posts: 473
Joined: Wed Jul 06, 2011 10:39 pm

Re: How to deal with not responding programs

Post by aes2011 » Sat Oct 28, 2017 7:48 am

Faust wrote:I've always liked the xkill command .... heck , I even like the name of it !

Line up the culprit in the cross-hairs and pull the trigger !

( Actually , it's just point and click , but that doesn't sound nearly so exciting , does it :D )
I like xkill as well and assigned Super+Delete as a keyboard shortcut to bring up the skull and crossbones :)

User avatar
Kyowash
Level 2
Level 2
Posts: 94
Joined: Mon Sep 25, 2017 1:22 pm
Location: /dev/full

Re: How to deal with not responding programs

Post by Kyowash » Sat Oct 28, 2017 4:16 pm

I decided to explain how to do it via CLI just in case the desktop environment froze, so you can go to the virtual console with Ctrl + Alt + F1. Of course, there are also multiple ways to do it from the GUI. Anyway, I must say some of them were unknown to me, glad to see people providing simpler ways.

Post Reply

Return to “Tutorials”