I ran "ulimit -v 75" to get SBCL working, and now nothing will run on my server.

$ sbcl
Killed
$ vi
Killed
$ man ulimit
Killed
$ ulimit -v 256
-bash: ulimit: virtual memory: cannot modify limit: Operation not permitted

How can I reset the ulimit?

link|improve this question

40% accept rate
feedback

2 Answers

up vote 1 down vote accepted

To my knowledge ulimit in Bash and other shells is "local" to the shell instance (more generally to the process and children). You can lower it but not raise it again on your own. But you can likely log in on another terminal and get another shell instance without that limit.

link|improve this answer
mcandre: Try this one first -- it's a better answer. =) – Randolf Richardson Mar 8 '11 at 3:15
HUGE sigh of relief. – mcandre Mar 8 '11 at 3:22
@mcandre: I guess we all had that at one point or another :) – STATUS_ACCESS_DENIED Mar 8 '11 at 3:24
feedback

Try using the "exec" command: exec ulimit -v 256

If that doesn't work, this might get you rebooting at least: exec reboot

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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