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.

Tim
  • 25,177

1 Answers1

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

Byte Commander
  • 107,489
  • 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. – Tim Dec 01 '15 at 01: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 01 '15 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 01 '15 at 15:42
  • @Tim I think you could try to restart Unity. look at my question here: http://askubuntu.com/q/681176/367990 – Byte Commander Dec 01 '15 at 15:44
  • it is gnome classic – Tim Dec 01 '15 at 15:52
  • @Tim Then you probably need to find a way to restart gnome classic. Easiest way will be to log out and back in. – Byte Commander Dec 01 '15 at 15:59