bug-bash
[Top][All Lists]
Advanced

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

Re: ulimit -c unlimited


From: Chet Ramey
Subject: Re: ulimit -c unlimited
Date: Wed, 26 Jul 2017 09:19:49 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 7/25/17 9:43 PM, 積丹尼 Dan Jacobson wrote:
> $ ulimit -c 99999999999999
> $ ulimit -c 9999999999
> $ ulimit -c unlimited
> bash: ulimit: core file size: cannot modify limit: Operation not permitted

The limits are not quite what you think they are.  Here's what happens on
my system.

The core file size limit starts at 0 (the soft limit).  The hard limit is
9223372036854775807.

The first command sets the hard and the soft limits to 99999999999999,
scaled by the block factor, since ulimit sets both the hard and soft limits
unless otherwise directed.

The second command lowers the hard and soft limits to 9999999999, again
scaled by the block factor. This is permitted.

The third command attempts to increase the limit beyond the current hard
limit. If you're not root, this is not permitted.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]