Configure linux to create core dumps on a crash
2 min
open ssh connection using putty and running the following commands create the target directory first sudo mkdir p /zixi/cores \# the path in core pattern must exist, or no core file is written sudo nano /etc/security/limits conf edit row with " soft core unlimited " add line sysctl kernel core pattern=" /zixi/cores/core %p " save changes ctrl + o exit from nano ctrl + x check with the following command ulimit c check if it is unlimited after restart as well cat /proc/sys/kernel/core pattern edit /etc/security/limits conf will make the core dumps creation persistent sysctl kernel core pattern="/zixi/cores/core %p" will put the cores in the defined location the limits config is not persistent across reboots to persist this config add kernel core pattern = /zixi/cores/core %p to /etc/sysctl conf


