[SATLUG] Fork bomb prevention

Enrique Sanchez esanchezvela.satlug at gmail.com
Thu Oct 14 22:06:41 CDT 2010


On Mon, Oct 11, 2010 at 11:12 AM, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
> Christopher Lemire wrote:
>>
>> I'd like to get an idea of how many processes my user and the root user
>> are
>> running, so I can know what to set ulimit to in /etc/security/limits.conf
>>
>> $ ~  ps -ef | grep --count
>> Usage: grep [OPTION]... PATTERN [FILE]...
>> Try `grep --help' for more information.
>> $  ~
>
> You could try 'ps -ef|grep root|wc -l' or 'ps -ef |grep -c ^.*$'
>


wouldn't  : ps -ef | wc -l ; easier.?

regards,
esv.


More information about the SATLUG mailing list