Force to quit linux

How to Force Quit In Ubuntu

If a program locks up, you can force quit it a number of different ways.

The System Monitor Way

If you’re at all familiar with the Windows task manager, you’ll figure out how this works pretty quickly. Go to System > Administration > System Monitor . Switch to the Processes tab if it doesn’t go there by default. Locate the program you want to close; all the programs are shown by name and they also have a tiny icon so you can generally identify what they are. Once you find the application you want to kill, select it by clicking on it. Then hit end process.

If you’re trying to close Firefox for example, you will see Firefox and close it. You’ll probably also see firefox-bin and that needs to go too.

The Force Quit Menu Way

If you’re familiar with Mac’s force quit menu, this might be more similar than the first method. To access this, right click on the bar at the top of the screen, where the time and Applications menu is. Click Add to Panel. This will bring up a window. In the search box, search for Force Quit. Once you find it, click the add button. Then close the window. Now click on your new launcher icon and Force Quit will tell you you can now click on the Application you want to force quit.

New! The xkill Way

If you have Ubuntu 11.04 or later, you might be running on Unity, that Gnome fork that doesn’t really work. I haven’t used it more than in brief testing, but when I needed to kill something, I liked using the xkill method. Simply use ALT + F2 . Then, type xkill and simply click on the window you need to force quit. This is very similar to the Force Quit Menu Way but doesn’t use a launcher. I couldn’t use the traditional method in Unity, so this method works.

Hope that helps.

Comments

Thanks Ryan, really needed to find that. I have to add that compared to wiundows, I have not had much need for this before today though.

Источник

Thread: Force quit / CTRL+ALT+DELETE equivalent?

Thread Tools
Display

Force quit / CTRL+ALT+DELETE equivalent?

How do I force an application to quit?

Re: Force quit / CTRL+ALT+DELETE equivalent?

One way is to hit alt+f2, then type xkill and hit enter. Now click on the program you would like to force quit.

Re: Force quit / CTRL+ALT+DELETE equivalent?

click it’s exit button, you should get a window asking if you want to force quit the application. otherwise you can go to system->administration->system monitor

find the application and kill it

Re: Force quit / CTRL+ALT+DELETE equivalent?

I find that the best way is to right click the menu bar at the top some were in the middle with nothing there, and then click ‘add to panel’ this will give you a menu. Simply select force quit. Now when you click the icon which should be added to your menu at the top you will be able to click the window that you want to quit.

Re: Force quit / CTRL+ALT+DELETE equivalent?

theres also a neat icon you can add to your task bar that’s actually called force quit. then when you run into issues you click that icon then click the window of the program that is beinig a jerk et voila, all better

Re: Force quit / CTRL+ALT+DELETE equivalent?

oh oops. sorry someone beat me to it

Re: Force quit / CTRL+ALT+DELETE equivalent?

ubuntuforums.orgubuntuforums.org/newreply.php
my fav way is
1. Gives the applications eating most of your cpu and mem

2. Note the name or pid of the process

Читайте также:  Asus en9600gt драйвер windows 10

if you noted the process name

Источник

Thread: How to force quit?

Thread Tools
Display

How to force quit?

I tried to open a jpg and the system locked up. How do you force quit when this happens? control-alt-delete didn’t work

Re: How to force quit?

However if just an app I use ctrl alt t to get a terminal and use xkill

Re: How to force quit?

However if just an app I use ctrl alt t to get a terminal and use xkill

I have set a keyboard shortcut for xkill (Winkey+Del) which occasionally is very useful on the when ristretto locks up opening images in my Xubuntu 12.04.

You don’t say which application or which OS version you have, but I am generally using another image viewer as default as ristretto locks more than any other. If this is your problem try mirage or gpicview, or just delete the config file at

/.config/ristretto/ristretto.xml and let the application make it again.

Re: How to force quit?

If by «the system» you mean Ubuntu or such, that can be corrected by resetting just that layer which sets atop Linux. Do an Alt+SysReq+RSKIUB. (Raising skinny elephants is utterly boring, if you hearken to mnemonics.) Many users refer to Linux itself as «the system.» Its kernel is so robust that it rarely, if ever, fails, so that’s one less thing to worry about after leaving products made in Redmond. Best of luck to you and may you find peace with a real OS proudly made by geeks for geeks!

Last edited by whitesmith; December 22nd, 2013 at 07:58 PM .

Re: How to force quit?

If a program freezes, open up the terminal or tty1 (CTRL+ALT+F1) and:

Источник

4 Ways to Kill Unresponsive Applications in Ubuntu

While using Ubuntu, one or more of our processes and applications might hang out from time to time. Restarting our system is not always the optimal solution and we find ourselves looking for ways through which we can quickly, easily, and safely get rid of the unresponsive applications and programs. In this article, we will explain various ways through which you can get rid of these unresponsive or hanging applications on your Ubuntu both through the UI and the command line.

We have run the commands and procedures mentioned in this article on a Ubuntu 18.04 LTS system. Some of the below-mentioned methods include the use of the Ubuntu command line, the Terminal. You can open the Terminal application either through the system Dash or the Ctrl+Alt+T shortcut.

Method 1: Using the X button for unresponsive UI based applications

If one of your UI based application is taking much longer than expected to respond or it is in a hanging state, you will see that it’s UI and buttons have become greyed out. If you see the “x” button, that is used to close applications, in an active state, you can try to kill the application dead through it.

In some distros, you will be prompted to send an error report when you try to close the unresponsive option. In others, you might be given an option to wait or ‘force quit’ the app. Whatever the case might be, there are high chances that you will be able to get rid of the unresponsive program.

Method 2: Using the System Monitor, Ubuntu’s Task Manager

Just like the Windows Task Manager that you might be using for years, Ubuntu also comes with a built-in processes & resources monitoring utility called the Gnome System Monitor. This Ubuntu task manager allows you to kill, end, stop and resume processes on your Ubuntu.

You can launch Gnome System Manager through the UI any time you want by searching for system monitor or even task manager in the Ubuntu Dash, or otherwise access it directly from the Applications list.

In the Processes tab of the System Monitor, you will be able to see all the currently running processes, also including the unresponsive ones. In order to kill a process, simply right-click on it and then select the Kill option.

However, we recommend that you first try to shut off the process by using the Stop or End options as they are relatively safer ways to discontinue it.

Method 3: Using the xkill utility

There is a Linux utility called xkill that can be used to kill an unresponsive program through your desktop. Most latest Linux distros have it installed by default but if your system lacks it, you can install it by using the following command in your Terminal:

Please note that only an authorized user can add/remove and configure software on Ubuntu. Advertisement

Читайте также:  Карты openstreetmap для windows

Now run this utility by using the xkill command as follows:

After running this command, you will see that your mouse pointer will turn into an ‘x’ or a skull. You can simply take the pointer to the unresponsive program and click it there. This will kill the hanging program within seconds.

Creating a Keyboard shortcut for xkill

While xkill is a very effective way to kill hanging programs, it might seem a hassle to open the Terminal and then run the command. Let us present the quickest way through which you can use this utility. How about creating a customized keyboard shortcut that simply runs the command for you and you are able to see and directly use the ‘x’ shaped pointer to kill an application. Here is what you need to do:

1. Open the Keyboard Shortcuts Settings

Open the Ubuntu Settings utility and access the Keyboard settings through the Devices tab. The easiest way to open the Keyboard settings is by searching for “keyboard shortcuts” through the Dash search.

The Settings utility will open in the following view:

2. Creating a custom shortcut

Scroll down through the slider located on the right side and you will be able to see a ‘+’ button at the bottom of the list. Click on that button in order to add a new custom shortcut. The Add Custom Shortcut dialog will appear. Enter the following information after which the Add button will become active:

Then click on the Set Shortcut button which will let you set a keyboard shortcut for the entered command:

Press the key combination of your custom shortcut. I am entering Ctrl+Alt+K as the shortcut as it is already not being used by my system for some other purpose. Also because the K in the combination is relevant to the word “Kill”.

Anyway, after entering the key combo you will see it listed in the Shortcut field of the Add Custom Shortcut dialog as follows:

All you need to do now is click the Add button and your new keyboard shortcut is registered as the new custom shortcut.

Now try using the new shortcut and you will be able to see the ‘x’ or a skill shaped mouse pointer at your service.

Method 4: Using the kill, pkill and killall commands

Let us assume that our Ubuntu Software Manager, the Gnome Software, is stuck. We can use the command line based system monitor, the top command, in order to get information about the currently running processes as follows:

Here you can get useful information about the Gnome Software application such as the PID (process ID) that can be used to kill the process.

You can then use the kill command as follows to kill the process using it’s PID:

  • You can also use the pkill to kill the process by using the following syntax:

  • Then comes the killall command that you can use to kill all the instances of an application. Here is the syntax:

Now no matter which one of your UI or even CLI based application gets stuck and won’t respond even if given time, you have a list of ways to get rid of it. You can use both the UI or the command-line based approaches mentioned in this article to be on the go again, almost immediately.

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

Источник

How To Quit Frozen Programs In Linux

So many different ways to kill a process

Even a robust operating system like Linux can sometimes encounter problems that cause apps or programs to freeze.

There are several ways to kill or quit a frozen program on Linux. This article will explain how.

Use The Kill Command

Before you can use the kill command, your system needs to know the Process ID (PID) of the unresponsive program.

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

Find The Process & PID

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

Top is a command line-based system monitor. From the command line, type the following:

$ top

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

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

Читайте также:  Что за ошибка 0xc004f200 windows

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

The command below will show you the running processes associated with Chrome:

ps aux | grep chrome

Kill The Process

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

  • kill – Kill a process by ID
  • killall – Kill a process by name

There are other signals you can send to both commands, depending upon the results you want.

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

Other kill signals include:

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

We learned from the ps command above that the PIDs for the instances of Chrome are 3827, 3919, 10764, and 11679.

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

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

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

killall -9 chrome

Click The X

Unresponsive programs and apps typically have grayed-out buttons or options that don’t work. Sometimes you can’t even move the app window around the screen.

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

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

Kill a Linux Process on Linux Using System Monitor

The default System monitor in Ubuntu is called Gnome. It gives insights into all the processes running on Ubuntu Linux operating systems.

Users can perform various tasks using the Graphical User Interface (GUI), including Stop, Continue, and Kill.

If your system doesn’t include the Gnome system monitor app, install it by following the steps below. This process works for all active versions of Ubuntu Linux as well as Linux Mint and Debian.

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

sudo apt-get install gnome-system-monitor

  • Open system monitor using Command Terminal with the following:

gnome-system-monitor

  • Or, using the GUI, navigate to Applications, type system monitor in the search box, and click on the icon to open it.
  • Open your System Monitor, browse the Processes column to find the unresponsive or frozen program, select and right-click on it.

You will see several options, including:

  • End Process to terminate the application while cleaning temporary files.
  • Stop Process to pause the process enabling you to continue working with it later.
  • Kill Process is the most extreme of the options and will work to quit a frozen program if trying to end it doesn’t work

Use The xkill Command

Xkill is a pre-installed Ubuntu kill utility that you can use to force kill an unresponsive Linux process. It is a tool that comes pre-installed in Ubuntu.

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

sudo apt install xorg-xkill

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

Use pgrep & pkill

Several Linux systems offer shortcuts called pkill and pgrep for performing the same tasks as kill and ps discussed above.

Pgrep will show the process name and ID. For example, running pgrep chrome to see the process ID of the running Chrome process. You can then use that ID 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 an application running. However, if you have several windows open of the same program and only want to kill one, use XKill instead.

When a program hangs, restarting your 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 options above as an alternative to easily and quickly exit frozen or non-responsive programs on Linux safely.

David has a background in small business and lives in Australia. He is a WordPress and Ubuntu Developer who enjoys design, CSS and tech tool integration. Read David’s Full Bio

Источник

Оцените статью