2

In Gnome Classic in 14.04, I am running a program (it opens a chm file, but I forgot the name of the program and the window doesn't show the name of the porgram) in a window. It becomes non responsive, and even right clicking it and choosing close don't close it.

How can I find out its pid, and kill it from gnome terminal? Thanks.

2

1 Answer 1

4

Just use xkill.

You may run it from a terminal window or from the Alt+F2 Unity HUD.

It will transform your mouse cursor into an × and whatever window you click next with the LEFT mouse button (1) will be killed. You abort this by clicking anywhere with the RIGHT mouse button (2).

7
  • I believe, it's not pre-installed. The package is x11-utils ;)
    – A.B.
    Nov 30, 2015 at 16:17
  • Thanks. I have to use keyboard to switch between programs' windows after running xkill in terminal.
    – Tim
    Dec 1, 2015 at 1:48
  • @Tim Yes, that's of course true. If the window you need to kill is completely covered by another, you may not use the mouse to move or minimize it while you're running xkill. You either have to navigate between the windows using your keyboard (e.g. Alt+Tab) or arrange your windows in a good way before typing xkill.
    – Byte Commander
    Dec 1, 2015 at 12:37
  • I accidentally close the panel for showing time etc, while under xkill. Is there some way to reopen the panel?
    – Tim
    Dec 1, 2015 at 15:42
  • @Tim I think you could try to restart Unity. look at my question here: askubuntu.com/q/681176/367990
    – Byte Commander
    Dec 1, 2015 at 15:44

Not the answer you're looking for? Browse other questions tagged .