[SATLUG] Fork bomb prevention
christopher.lemire at gmail.com
Thu Oct 14 23:06:47 CDT 2010
On Thu, Oct 14, 2010 at 10:06 PM, Enrique Sanchez
<esanchezvela.satlug at gmail.com> wrote:
> 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
>>> 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.?
That won't give you the same output. Try both.
I found out the number of processes for just one user, mine.
> SATLUG mailing list
> SATLUG at satlug.org
> http://alamo.satlug.org/mailman/listinfo/satlug to manage/unsubscribe
> Powered by Rackspace (www.rackspace.com)
Christopher Lemire <christopher.lemire at gmail.com>
Ubuntu 64 bit Linux Raid Level 0
gpg --recv-keys E13B0909
Key fingerprint = 3E1A 9103 EF3D 4885 6866 E9DE C69F 18B3 E13B 0909
More information about the SATLUG