Enable Core Files in GNU/Linux ============================== Author: Momchil Ivanov Date : 2013.06.16 Introduction ------------ This article describes how to enable the generation of core files in the GNU/Linux operating system. Method ------ To save the core files under the directory /tmp, type: $ ulimit -c 50000 $ sysctl kernel.coreusespid=1 $ sysctl kernel.corepattern="/tmp/%e.%p.core" in the bash shell. Each core file contains the process id (PID, %p) in the filename.