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 c...@case.edu http://cnswww.cns.cwru.edu/~chet/