How to modify the core dump location

use the kernel core_pattern parameter. This may be useful if you want to save the core in an NFS location.

[root@test:~]$cat /proc/sys/kernel/core_pattern
/var/core/dumps/%t_%e_core.%p
[root@test:~]$sysctl -w kernel.core_pattern=’/remote/dumps/%t_%e_core.%p’

[root@test:~]$cat /proc/sys/kernel/core_pattern
/remote/dumps/%t_%e_core.%p

About the Author

Yogi

24 years of experience in various layers of software. Primarily experienced in system side software design and development on server management software. Interested in linux development in x86 and arm architecture.