From: Michael Kerrisk Date: Thu, 28 May 2020 09:14:36 +0000 (+0200) Subject: core.5: Mention 'sysctl -w' as a way of changing core_pattern setting X-Git-Tag: man-pages-5.07~36 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fman-pages.git;a=commitdiff_plain;h=8626fdd2defede66d840a85b3ed1fd5705a030cc core.5: Mention 'sysctl -w' as a way of changing core_pattern setting Reported-by: Jonny Grant Signed-off-by: Michael Kerrisk --- diff --git a/man5/core.5 b/man5/core.5 index 9725ff64a0..6dbaa69b8e 100644 --- a/man5/core.5 +++ b/man5/core.5 @@ -533,7 +533,7 @@ For more extensive details, see the .BR coredumpctl (1) manual page. .PP -To disable the +To (persistently) disable the .BR systemd (1) mechanism that archives core dumps, restoring to something more like traditional Linux behavior, one can set an override for the @@ -548,6 +548,18 @@ mechanism, using something like: .EE .in .PP +It is also possible to temporarily (i.e., until the next reboot) change the +.I core_patter +setting using a command such as the following +(which causes the names of core dump files to include the executable name +as well as the number of the signal which triggered the core dump): +.PP +.in +4n +.EX +# \fBsysctl \-w kernel.core_pattern="%e\-%s.core"\fP +.EE +.in +.PP .\" .SH NOTES The