La commande 'chcore' permet de changer la destination des fichiers 'core'.
La syntaxe est la suivante :
Usage:
chcore [-R load_module] <options> [<username>|-d]
where <options> is one or more of the following:
-c {on|off|default} : setting for core compression
-p {on|off|default} : setting for core location
-l {<path>|default} : specify directory to use
-n {on|off|default} : setting for core naming
The -d option will set the default value for the system.
The path specified by -l must be fully qualified (e.g., /tmp/cores)
Exemple :
# chcore -l /tmp
Vérifier avec la commande 'lscore' :
# lscore
compression: off
path specification: off
corefile location: /tmp
naming specification: off