2008-09-23

Easily Kill Unresponsive Application Using Xkill [Linux Gyan]

by Anoop Engineer 9 comments




Thanks to the multitude of beta programs released each day for Linux, one can often find certain programs becoming unresponsive mid-use. The application window stops responding, it completely refuses to close and continues to eat valuable memory and cpu cycles.

You accept the fact that any unsaved data in that application is gone and the only way to exit that hung application is to kill it.

But how?

Most people in such situation tend to close their current Gnome/KDE session by either logging out or using Ctrl + Alt + Backspace. Some tend to use the terminal, finding the PID of the unresponsive application using the ps command and then killing it with the kill -9 pid command.

But smart people tend to use this method:

  1. When a program gets hung, hit Alt + F2 to bring up the Run dialog.
  2. Type in xkill and hit enter.
  3. Your mouse cursor will change into a cross or skull and bones.
  4. If the unresponsive application is not in focus, use Alt-Tab to switch to it. Left click anywhere on the application window to kill it.

Know any better method than this? Share it in the comments.

Comments 9 comments
leoeris said...

Yeah, just ssh in from one of the 3 or 4 other computers on your desk and kill the app that way.

Anoop Engineer said...

@leoeris, got the sarcasm in your comment.
But let me remind you that this works over ssh too if you forward X traffic over ssh.

And I hope that anyone reading the post will understand that this method is intended at Graphical applications and not for killing command line applications.

Exsecrabilus said...

Err, this exactly mimics what the Force Quit panel applet does. Except the panel applet, you just click the applet, it turns into a cross and you click the app; you don't have to press Alt+F2 and type in "xkill." If people bothered doing that, they would already know to run "killall appname>

Manoj said...

I am a recent fan of Linux and this app would be a great help for me. Thanks

Anonymous said...

Great article. Thanks.

Anonymous said...

Thanks!

laptop deals said...

great..thanks for sharing

Sinn replica watches said...

Your post is really informative for me. I liked it very much.

tujh67yiu said...

Greetings, I enjoy your blog. This is a nice site and I wanted to post a note to let you know, good job! Thanks
xiaoxiao123 08 25
Juicy Couture
Omega Watches

Post a Comment

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Advertise on this site Sponsored links

Subscribe feeds rss Recent Entries

Categories

Subscribe feed rss Popular posts

Subscribe comments rss Recent Comments

Technorati

Technorati
My authority on technorati
Add this blog to your faves