]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
core.5: Mention 'sysctl -w' as a way of changing core_pattern setting
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 28 May 2020 09:14:36 +0000 (11:14 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 28 May 2020 09:37:32 +0000 (11:37 +0200)
Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man5/core.5

index 9725ff64a09446d87a32268fa3581bc3f58e4dc2..6dbaa69b8e97e1cbcc204394df4aa3a96cc7381b 100644 (file)
@@ -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