Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Well..

$ ulimit -s
8192
$ sudo ulimit -s 16384
$ ulimit -s
8192

Why does ulimit disrespect me in such a barbaric way?

Lion, by the way.

share|improve this question
1  
You'd have the same issue with cd. –  David Schwartz Mar 2 '12 at 11:15
    
I would double up vote that question if I could, it made me chuckle. –  Tom H Mar 5 '12 at 20:06

1 Answer 1

up vote 10 down vote accepted

ulimit is shell/process specific. Skip the sudo.

$ ulimit -s
8192
$ ulimit -s 16384
$ ulimit -s
16384
share|improve this answer
    
I'm surprised sudo didn't give an error when passed ulimit; usually it needs an external binary, but ulimit is a shell builtin. –  amphetamachine Jun 5 '12 at 18:50
    
@amphetamachine Check out which ulimit. Nothing surprising about it. –  Daniel Beck Jun 5 '12 at 19:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.