The kernel.core_pattern
option specifies the core dumpfile pattern
name. It can be set to an empty string. In this case, the kernel
behaves differently based on another related option. If
kernel.core_uses_pid
is set to 1
, then a file named as
.PID
(where PID
is process ID of the crashed process) is
created in the working directory. If kernel.core_uses_pid
is set to
0
, no coredump is saved.
To set the runtime status of the kernel.core_pattern
kernel parameter,
run the following command:
$ sudo sysctl -w kernel.core_pattern=
To make sure that the setting is persistent,
add the following line to a file in the directory /etc/sysctl.d
:
kernel.core_pattern =