I am using Linux (Ubuntu 7.04)
I want to turn on core-dumping so I can debug programs that crash. This is a simple matter of typing ulimit -c followed by the allowable size of the core dump.
However, this only sets ulimit temporarily. As soon as I Iog off and then back on, ulimit is set back to 0. How can I permanently set ulimit?
I tried placing the line ulimit -c 50000 into various files, such as bash.bashrc, /etc/rc.local, and /etc/init.d/rc.local, but all of this has no effect. ulimit -c is always back to 0 when I log off/log on.
Start Free Trial