Skip to content

How To Blog

how to

  • How to get the most out of Duolingo 2021 Computer Tips
  • How To Show Hidden Files In Windows 10 Windows 10
  • Adding Shortcuts to the Windows Computer Tips
  • The Best Places To Get VoIP Services To Work From Home Tools Review
  • 9 Best Free Calling Apps For Unlimited Calls & Texts

    9 Best Free Calling Apps For Unlimited Calls & Texts

  • Google Authenticator: What It Is and How to Set It Up Google Software/Tips
  • Redirect Output from the Windows Command Line to a Text File How-To
  • Enable Microsoft Internet Information Services (IIS) in Windows 7 Windows 7

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

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

  • Common Reasons for Ubuntu Crashes and How to Recover Linux Tips
  • How to Install Ubuntu in VirtualBox Linux Tips
  • How To Upgrade To The Latest Ubuntu Linux Tips
  • Gravel calculator Calculator
  • Shutdown and Restart Your Computer From The Ubuntu Terminal Linux Tips
  • Terminal Tricks: Use the Terminal as an alarm clock Linux Tips

Leave a Reply Cancel reply

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

  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • How-To
  • iOS
  • iPad
  • iPhone
  • Linux Tips
  • macOS
  • MS Office Tips
  • Networking
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • January 2023
  • December 2022
  • 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
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • 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

2021 Android ) Apple apps Best browser change Chrome Closing words Concluding remarks Download email Error Facebook From Google Image Internet Keyboard Mac make Movies Music online Packaging phone? Photos Print Search Shortcuts sites Switch Time Tips Tricks turn using Video Videos Watch What With Working? your YouTube

  • Set an Expiration Date on Shared Google Drive Files How-To
  • Samsung Gear S3 Battery Life & Charger Options Gadgets
  • How to Fix ‘RPC Server is Unavailable’ Error in Windows Help Desk
  • What are your 7 best tips for creating a strong password? Computer Tips
  • Best pretty calculator 2020 silver
  • How to embed video within video in Adobe Premiere Computer Tips
  • The best iPhone apps to turn photos into paintings and art iPhone
  • electricity shortfall in pakistan today

    Electricity shortfall in pakistan today. ISLAMABAD: Federal Minister for Water and Power Khawaja Muhammad Asif has said that all out efforts are being made to complete the under construction power projects to meet the growing demand in the country. In an interview, he said load shedding issue will be resolved soon. electricity consumer bill mepco

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}
Go to mobile version