Easily "Force Quit" or "End Task" on a program in Linux with a keyboard shortcut

(0 votes, average 0 out of 5)

Note: This guide is written for an Ubuntu-based system but should work on any Linux distribution running the Gnome desktop environment.

If a program stops responding in Linux, an easy way to kill it is with the xkill utility. This utility turns the mouse into crosshairs. Once the user clicks on a window with the crosshairs, said window is instantly killed. This is much more convenient than trying to find the process ID or name in a list of running processes and stopping it. In order to set up xkill with a keyboard shortcut, go to System -> Preferences -> Keyboard Shortcuts from your Gnome menu. Click the Add button on the bottom and create a new entry with the following information:

xkill

Click Apply to save the new entry. Now double-click on the right-hand side to assign a keyboard shortcut to this action. Hold down key combination you wish to use, for example, CTRL+ALT+ESC (Control + Alt + Escape). The new key combination will appear on the right:

xkill-2

Once this is done, you may close the Keyboard Shortcuts window. Try killing a program by holding down your shortcut combination and you should see crosshairs appear. To cancel the kill, simply click the right mouse button.

Partner Links:
 
Related Articles

» Troubleshooting CIFS Sign In Issue on LG Blu-ray Players

Most LG Blu-ray players provdie a useful interface for streaming media off of a home network.  The interface is sometimes called 'Home Link"; in other players it's simply under Movie or Music.  In both cases, shared folders under a network computer may not actually show up, and when the network computer is selected, a "CIFS Sign In" prompt will show up.  CIFS is a standard for remotely sharing files, but the sign in prompt is a sympton of another issue which can be fixed....

» How to Use a Line Break in Excel

In some circumstances, users would like to add a newline, return, or line break to a single cell within an excel spreadsheet. Hitting enter (or return) will jump to the next cell. However, there are hot keys that allow you to do this easily.In Windows, you can use the alt-enter (or alt-return) key combination.In Mac, you can use control-option-return. If this combination does not work, try command-option-return.

» How to Add or Switch a Display in Windows 7

In order to connect a laptop or desktop to a television (or use a two-monitor display), Windows 7 must be configured to output to a different source or multiple sources.  Here's how to do it:Connect your computer and display device(s) to be hooked up.  Open the Start menu and navigate to the Control Panel.If both display devices are connected, you should see two displays show in the Display window.  Activate both monitors and change if you would like the displays mirrored (both...