For example, the following coreadm command sets the default per-process core file pattern. This setting applies to all processes that have not explicitly overridden the default core file pattern. This setting persists across system reboots.
# coreadm -i /var/core/core.%f.%p
This coreadm command sets the per-process core file name pattern for any processes:
$ coreadm -p /var/core/core.%f.%p $$
The $$ symbols represent a placeholder for the process ID of the currently running shell. The per-process core file name pattern is inherited by all child processes.
Once a global or per-process core file name pattern is set, it must be enabled with the coreadm -e command. See the following procedures for more information.
You can set the core file name pattern for all processes run during a user's login session by putting the command in a user's $HOME/.profile or .login file.