I set ulimits to fullfill memory demands of Git. Do we have anyway to reset ulimits to defaults, I mean what they were before I set them. Please keep in mind I am doing it from Python script


ulimit only sets properties for the current shell. Once you leave the shell everything is back to normal:

michas@lenny:~$ ulimit 
michas@lenny:~$ (ulimit 4; ulimit)
michas@lenny:~$ ulimit
  • I am doing from Python script. – Ahmad Sep 30 '13 at 15:34
  • how are you "doing it from a Python script"? current shell in this answer really should read current process (and child-processes) – umläute Sep 30 '13 at 15:44
  • What do you mean?.Please elaborate.I want to set and unset ulimits from Python script – Ahmad Sep 30 '13 at 15:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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