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.
Really /etc/security/limits.conf is much better for such job...
0
Featured Post
Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.
I almost hate to ask, but did you try putting it in the .profile?
Good Luck,
Kent