How to get a specific PID #

Keith keith_linux at
Wed Dec 30 05:02:30 UTC 2015

On 12/29/2015 02:43 PM, rikona wrote:
> Running 12.04 updated. I often have several instances of Kate open in
> various desktops, and occasionally one of them becomes unresponsive,
> but could be closed without losing something important. [Can move
> window, no menus come up, no keys seem to do anything, can't close]
> How can I find out which PID # is associated with a particular
> instance of Kate [or any other pgm] on a particular desktop, so I can
> close just THAT instance? I can see them all in htop, but which is
> which?
> Thanks,
>  rikona

You can use the command: xkill
to kill any window on the desktop. It is in the X11-UTILS package.
Using ALT-F2 key combination you run it then an 'X' mouse pointer will
appear on the desktop. You press the Left mouse button in the window you
want to kill.

More information about the ubuntu-users mailing list