How to kill an application in Ubuntu without knowing the PID

It is very rare for me to experience a lock up on an Ubuntu machine. However when a program hangs for whatever reason and hogs all of the system resources it gets a bit frustrating. It would be nice to be able to kill the application quickly and move on with the work you were doing.

When a program hangs and you want to kill it, open a terminal and type xkill. This will turn the mouses cursor into a cross X. From here simply click on the window of the application that is hanging and viola… it disappears immediately minus the hourglass, blue screen or spinning beachball.

Advertisements

5 thoughts on “How to kill an application in Ubuntu without knowing the PID

  1. Found your post when I googled (of course because of a program that wouldn’t close).

    It worked like a charm.
    I know it’s now more than a year later than your post, but nevertheless: Thanks!
    :-)

  2. Thanks. The new Natty ubuntu leaves out the x-kill from the usual menu selection, and I couldn’t find it anywhere.

    This helps immensely

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s