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.

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?

share|improve this question
add comment

2 Answers

up vote 2 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.

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

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

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

share|improve this answer
add comment

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.