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.

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).

  • I believe, it's not pre-installed. The package is x11-utils ;) – A.B. Nov 30 '15 at 16:17
  • Thanks. I have to use keyboard to switch between programs' windows after running xkill in terminal. – StackExchange for All Dec 1 '15 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 '15 at 12:37
  • I accidentally close the panel for showing time etc, while under xkill. Is there some way to reopen the panel? – StackExchange for All Dec 1 '15 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 '15 at 15:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.