Core dumps are triggered by kernel when a program crashses. It saves memory to a file.

How to enable core dumps.

<pre lang="bash">
ulimit -S -c unlimited

Enable core dumps permanently. Edit /etc/security/limits.conf. Add the following.

<pre lang="bash">
* soft core unlimited

Disable core dumps.

<pre lang="bash">
ulimit -S -c 0

Disable core dumps permanently. Edit /etc/security/limits.conf. Add the following.

<pre lang="bash">
* soft core 0
* hard core 0