aboutsummaryrefslogtreecommitdiffstats
path: root/man5
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-05-28 11:14:36 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-05-28 11:37:32 +0200
commit8626fdd2defede66d840a85b3ed1fd5705a030cc (patch)
tree3d715f54ee377adca854548f0eae73fff538c71d /man5
parent94c50673e6dbbb550e8a7d7a6090949e38fdd3c4 (diff)
downloadman-pages-8626fdd2defede66d840a85b3ed1fd5705a030cc.tar.gz
core.5: Mention 'sysctl -w' as a way of changing core_pattern setting
Reported-by: Jonny Grant <jg@jguk.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man5')
-rw-r--r--man5/core.514
1 files changed, 13 insertions, 1 deletions
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