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

» Keyboard Shortcuts for Microsoft Word

Shortcuts are combinations of keys that when pressed at the same time perform a command. Shortcuts allow the user to minimize or eliminate the use of a mouse. This can allow users to use programs faster and more efficiently. The following is a listing of the shortcuts (and their commands) that are compatible with Microsoft 2002, 2003, and 2007. Also, highlighted are the most commonly used shortcuts. Command Name Shortcut Keys ...

» How to edit remote files with WinSCP and Notepad++ (or any other editor..)

Have you ever wondered how to edit a remote file in a Linux environment while you are working in a windows environment? Or maybe just want to edit a file directly from an FTP client? If so, WinSCP is for you!  is an open source FTP, SFTP, and SCP client with a graphical interface. You can download the latest version of WinSCP here: . In this tutorial, I will be using (which can be found here: ). However, you may substitute any text editor you would like! To use Notepad++ with...

» How to Set Emacs to Word Wrap on Vertical Split

By default, using C-x 3 in emacs splits the window vertically into two buffers.  This is very convenient, but for some reason it disables word wrap (even when word wrap is set in the options).  To enable word wrap on a vertical split, add the following to your .emacs file (typically located in your home directory):;; Word wrap on vertical split(setq truncate-partial-width-windows nil)Alternatively you can enter the same command during your current session if you don't want this to be...