How To Close Unresponsive Programs On Linux

How-To Linux

Linux is a sturdy operating system and often doesn’t face issues such as unresponsive or sluggish performance. However, at times, some of the apps could freeze upon you. You can either wait for them to respond or crash or you can kill those unresponsive apps.

There are a lot of ways which can be used to kill an unresponsive app. In this post, we have listed some of the best ways to deal with unresponsive applications. Let’s get started!

Note: We are using Kali Linux here.

Click X button

This is the simplest way to close an app, the conventional way is clicking X or close button to kill an application. Whenever any application becomes unresponsive, the first thing to do is quit or close them. For that, you need to click X located either right or left side of the application window.

Click X button

This usually closes the application, however, if the application has frozen on you, move on to the next step.

System Monitor

System Monitor

System Monitor is a utility on Linux which shows you currently running processes along with file systems, and resources.

System Monitor-1

If you have an unresponsive app at your hand, then you can locate it under the Processes tab and right-click on it. On the context menu, you get three options: Stop Process, End Process, and Kill Process

System Monitor-3

With Stop Process, you get an option to start it later.

End Process closes a process and ends the application, deleting temporary files in the process.

If none of the above options works, click Kill Process to close the application.

It is better to use these options in order to deal with unresponsive programs.

Also Read:-

 “Kill” Command

If you can get nothing to come up and everything seems to freeze, then you need to launch Terminal. Press CTRL+ALT+T to get Terminal up. There are a few commands which can be used to close an app.

You can use kill command, however, first, you need to know the process ID. To know the process ID, you need to type the command:

ps aux | grep [process name]

Kill Command

Replace the process name with the app that you want to close.

ps aux | grep firefox

Once you get a process ID, you can type this command:

Kill Command-1

kill [process ID]

This will close the application in a instant.

“pgrep” & “pkill” command

If you don’t get the process ID, you can use pkill command to kill the unresponsive apps. All you need is a process name along with pkill command to close the app.

Type the following command:

pgrep-pkill command

pkill [process name]

Alternative method: You can use pgrep command to get the process ID

pgrep [process name]

Once you get a process ID, type the pkill with the process ID

pkill [process ID]

This will close the frozen app in a few seconds.

Also Read:-
Top 7 Photo Management Tools for LinuxAre you looking for best Linux open source photo management tool? Here, we bring for you 7 best Linux photo...

Killall: The Last Resort

If none of the commands worked, then you can use Killall command to get rid of unresponsive apps. This command will close all the instance of an app. For example: if you have more than one window of an app opened, it will close down all of them.

Killall [process name]

For Example:

Killall leafpad

Killall The Last Resort

This command will kill a program easily, however, it is recommended to use the command when absolutely necessary.

So, now that you know how to deal with unresponsive programs, next time you have an app that doesn’t close, use any of the methods to close an app. Also, if you have face this situation very often then it is recommended to upgrade your hardware to doublecheck whether the things are fine.

Liked the article? Please mention your thoughts in the comments section below.

Is this page helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.