How to get a specific PID #

Keith keith_linux at comcast.net
Thu Dec 31 22:58:54 UTC 2015



On 12/31/2015 02:20 PM, rikona wrote:
> Hello Keith,
> 
> Wednesday, December 30, 2015, 9:13:41 PM, Keith wrote:
> 
> 
> 
>> On 12/30/2015 07:07 PM, rikona wrote:
>>> Tuesday, December 29, 2015, 9:02:30 PM, Keith wrote:
>>>
>>>> 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?
>>>
>>>> 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.
>>>
>>> Thanks! Does this work at a 'window' level? I ask because I can still
>>> move the window, but can do nothing inside the window.
>>>
>>> The kate window may be running multiple PIDs in a parent/child
>>> way. If I do kill the 'parent' kate PID, would that also kill the
>>> children kate PIDs? If it would, is there a way to keep AND access the
>>> children, and just kill the parent?
>>>
> 
>> Yes this works at the window level. All instances of kate that are
>> running will be killed when you use xkill so save your work in other
>> windows first.
> 
> Thanks for the reply! Just to make sure I understand: Lets say I have
> 3 kate windows open, each one with 4 tabs. This would give me 12 PIDs,
> in 3 groups of 4 in htop in tree mode. Now if I use xkill on ONE
> window, does this stop the 4 PIDs in that window or all 12 PIDs for
> all the kates? If all 12 are stopped, I would think of this at a
> 'system' level rather than a 'window' level. Just trying to
> understand...
> 
> In any case, I'd save everything I can before trying anything. :-))
> 

It will kill all kate programs that are open on your desktop.




More information about the ubuntu-users mailing list