Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • The 7 Most Popular Video Game Genres Gaming
  • How To Make Your Own Custom Google Maps technology
  • Should You Buy a Next-Gen Xbox or PlayStation Console? Gaming
  • 8 best reminder apps for Windows 10 How-To
  • How To Download SoundCloud Songs Computer Tips
  • How to Fix Instagram Lagging on iPhone and Android iPhone
  • Slack Desktop App: What Are the Benefits of Using It? Reviews
  • 3 Best MicroSD Cards To Buy in 2020 Gadgets

How To Quit Frozen Programs In Linux

Posted on October 7, 2020October 30, 2020 By blog_786 No Comments on How To Quit Frozen Programs In Linux

How To Quit Frozen Programs In Linux. Even on an operating system as reliable as Linux, sometimes there can be problems causing applications or programs to freeze.

There are several ways to kill or exit a frozen program in Linux. This article will explain how to do this.

How To Quit Frozen Programs In Linux

Use the kill command

Before you can use the kill command, your system must know the process identifier (PID) of the unresponsive program.

The PID is a number that automatically identifies each process when created on any Linux OS. The advantage of this method is that it works on all Linux systems.

Find process and PID

If you don’t know which process is blocked on Linux, two tools can help you find the process: top and ps.

Top is a command-line based system monitor. At the command prompt, enter the following:

– /

$ top

How To Quit Frozen Programs In Linux

The screenshot above shows a lot of information. For example, let’s say Chrome is a frozen program on your computer.

You can see that there are four instances of Chrome that work with the following PIDs:

  • 3827
  • 3919
  • 10764
  • 11679

To identify the specific instance of Chrome you want to kill, use ps command and grep to filter the output.

The command below will show you running processes related to Chrome:

ps aux | grep chrome

How To Quit Frozen Programs In Linux

Kill the process

Kill Operation

You now have two pieces of information you need to kill a hung process on Linux: its name and ID. Use the commands below:

  • kill – kill process by id
  • killall – kill process by name

There are other signals that you can send to both commands, depending on the desired results.

For example, if you want to kill an unresponsive process and then restart it, you will use the HUP (hang up) signal.

How To Quit Frozen Programs In Linux

Other kill signals include:

    • SIGSTOP to stop the process
    • SIGINT to interrupt the keyboard
    • SIGKILL to kill the signal

From the above ps command, we learned that the PIDs for Chrome instances are 3827, 3919, 10764, and 11679.

To send a kill signal, run the following commands to successfully kill all four instances of Chrome:

      • kill -9 3827
      • kill -9 3919
      • kill -9 10764
      • kill -9 11679

You can also use one command below using killall to send the same signal:

killall -9 chrome

Click the X

Nonresponsive programs and applications usually have disabled buttons or disabled options. Sometimes it is not even possible to move the application window around the screen.

The simplest solution is to click the X button in the upper corner. Depending on your OS, the button may be in the upper left or upper right corner.

After pressing X, you will see a dialog box with two options: “Wait” or “Force Quit”. To end the program, click “Force Quit”.

How To Quit Frozen Programs In Linux

Killed a Linux process on Linux using System Monitor

The default system monitor in Ubuntu is called Gnome. It gives an overview of all the processes running on Ubuntu Linux operating systems.

Users can perform a variety of tasks using a graphical user interface (GUI), including Stop, Continue, and Kill.

How To Quit Frozen Programs In Linux

If your system does not include the Gnome system monitoring application, install it by following these steps. This process works for all active versions of Ubuntu Linux as well as Linux Mint and Debian.

      • Use the keyboard shortcut CTRL + ALT + T in Terminal. Then use the command below to download and install the Gnome performance monitor.

sudo apt-get install gnome-system-monitor

      • Open system monitor with a command terminal with the following:

gnome-system-monitor

      • Or, using the GUI, go to Applications, type system monitor in the search box and click the icon to open it.
      • Open in System Monitor, look in the Processes column and find the program that is not responding or is blocked, select it and right-click it.

How To Quit Frozen Programs In Linux

You will see several options, including:

      • End Process to terminate the application when clearing temporary files.
      • Stop a process to pause the process so you can continue working on it later.
      • Kill Process is the most extreme option that will help you exit a frozen program if the attempt to terminate it does not work.

Use the xkill command

Xkill is a pre-installed Ubuntu kill utility that can be used to force kill a non-responding Linux process. It is a tool that comes pre-installed in Ubuntu.

You can also install it via Terminal on other distributions using the following command:

sudo apt install xorg-xkill

Then run it by typing xkill. Your mouse will turn into a skull or cross. Left-click a frozen program to close it.

Use pgrep and pkill

Some Linux systems offer shortcuts called pkill and pgrep to perform the same tasks as kill and ps described above.

Pgrep will show the process name and ID. For example, launching pgrep chrome to view the id of the running Chrome process. Then you can use this identifier with the kill command.

pkill 7012

Or you can skip this step and use the command below to kill all instances of Chrome:

pkill chrome

This solution works well if you only have one instance of the application running. However, if you have multiple windows of the same program open and only want to kill one, use XKill instead.

When a program freezes, rebooting the system is not always the most convenient option. This is especially true if you are working on several projects at the same time and have not saved your work.

Try one of the above options as an alternative to quickly and safely exit frozen or unresponsive programs on Linux.

-How To Quit Frozen Programs In Linux

Share this:

  • Twitter
  • Facebook
Linux Tips

Post navigation

Previous Post: HDG Explains: What Is An API?
Next Post: 8 Safe Sites to Discover New Fonts for Windows 10

Related Posts

  • Use FFmpeg To Easily Extract Audio From FLV FIles Linux Tips
  • How To Install a Linux OS On Your Android Phone Linux Tips
  • 10 Cool Linux Terminal Commands You Have to Try Linux Tips
  • TOP 5 Linux Distros for Gaming Linux Tips
  • How To Compile Software Packages On Linux Linux Tips
  • 10 Most Popular Software Choices for a New Ubuntu User Linux Tips

Leave a Reply Cancel reply

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

Archives

  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • A Simple Trick to Get 50% Discount on Audible for Three Months
  • How to reset your SIM card
  • This Simple Trick Lets You Play YouTube in the Background on iOS
  • How to go Back to the old YouTube Layout (2013)
  • How to Bypass Chromecast DNS and Circumvent Geo Blocking
DMCA.com Protection Status

Recent Posts

  • MailTag: Real-time Email Tracking, Made Easy
  • Pokemon Sleep: what is it and how to play
  • How to Respond to Messages on Instagram (Mobile and PC)
  • How to reset your SIM card
  • This Simple Trick Lets You Play YouTube in the Background on iOS

Recent Comments

  1. This Simple Trick Lets You Play YouTube in the Background on iOS on YouTube Not Working? Here Are Quick Fixes To Try
  2. How to Bypass Chromecast DNS and Circumvent Geo Blocking on 5 Cool Websites to Find Good Movies and TV Shows on Netflix
  3. 5 Cool Websites to Find Good Movies and TV Shows on Netflix on check netflix video quality internet explorer
  4. SmartDNS vs VPN “What’s the Difference?” on How to Watch Apple TV on Roku
  5. How to go Back to the old YouTube Layout (2013) on 10 Things to Check Before Publishing a YouTube Video
  • How to Enable 2 Factor Authentication on WordPress How-To
  • best halloween video games Gaming
  • 6 Ways to Send Large Files as Email Attachments Computer Tips
  • How to Connect a Phone to Chromebook Using Phone Hub Computer Tips
  • 5 Best Outdoor Smart Plugs of 2019

    Smart plugs add an unprecedented level of convenience to your daily life. You can even control old appliances from your phone via Wi-Fi. Some smart

  • The 5 Best Smart Flood Sensors

    Few things in the world can do the same damage to a home as water, especially if that water goes unnoticed for almost any period of time. Water leak

  • Is Your iPad Charging Slow ? How to Fast-Charge iPad
  • 10 best free live wallpaper apps for android Smartphones

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version