https://sigquit.wordpress.com/2009/03/13/the-core-pattern/
Configure it forever
The changes done before are only applicable until the next reboot. In order to make the change in all future reboots, you will need to add the following in “/etc/sysctl.conf“:
# Own core file pattern...
kernel.core_pattern=/tmp/cores/core.%e.%p.%h.%t
sysctl.conf is the file controlling every configuration under /proc/sys