[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to kill 120 jobs at once.



On Sat, Jan 21, 2012 at 11:28 PM, Brad Alexander <storm16@gmail.com> wrote:
> Agreed. This command is much better than killall. I have worked with several
> unices, and in other versions of Unix (AIX is where I got bitten by this),
> killall is the command does just that. It kills all processes, as in during
> shutdown of the machine. AIX's killall ignores patterns and just starts
> shutting down the machine.
>
> I have used pkill ever since.
>
> A companion command to pkill is pgrep, which finds commands with a pattern,
> for example,
>
> pgrep -u root sshd

Wow... this result was the one I was looking for hard.

Thanks,

>
> will list all running sshd processes owned by root (thereby skipping a user
> logged in remotely).
>
> --b
>
> 2012/1/21 Jörg-Volker Peetz <jvpeetz@web.de>
>>
>> If you know the name of the process(es) to be killed, use the command
>> pkill
>> (from the package procps):
>>
>>  pkill [options] pattern
>>
>> But be careful, this tool is a "sharp sword".
>> --
>> Best regards,
>> Jörg-Volker.
>>
>>
>> --
>> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact
>> listmaster@lists.debian.org
>> Archive: [🔎] jfe8bk$h79$1@dough.gmane.org">http://lists.debian.org/[🔎] jfe8bk$h79$1@dough.gmane.org
>>
>


Reply to: