Identifying a running process

Raseel Bhagat raseelbhagat at gmail.com
Thu Jun 18 14:43:40 UTC 2009


On Thu, Jun 18, 2009 at 8:07 PM, Ray Leventhal <ubuntu at swhi.net> wrote:

> GaryT wrote:
> > I want to learn how to identify and then stop a process - for example
> > today I tried to restart a program that had just crashed and Ubuntu gave
> > me a message along the lines of "XYZ is still running but not
> > responding. Stop the process or reboot before trying again" or words to
> > that effect.
> >
> > Rebooting was highly undesirable because it meant shutting down other
> > programs.  Too bad!
> >
> > Can someone help save the search and point me to some appropriate
> > reading matter?
> > Much appreciated
> >
> > GT
> >
> >
> >
> >
> >
> Hi Gary,
>
> In terminal, try this:
>
> ps auxxxx|grep XYZ
>
> the first column of the response will be the process ID (PID) of the
> offending process.  Once that's known you can
>
> sudo kill <pid>
>
> and you'll have stopped the hung process.
>

Or you can directly call :
sudo killall -9 XYZ

This will kill all instances of the process XYZ. Then start XYZ as you
normally would.

Thanks,
Raseel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090618/354bca2f/attachment.html>


More information about the ubuntu-users mailing list