System Administration Guide, Volume 2

Expanded Core File Names

If a global core file directory is enabled, core files can be distinguished from one another by using the variables described in the following table.

Variable Name 

Variable Definition 

%p

Process ID 

%u

Effective user ID 

%g

Effective group ID 

%f

Executable file name 

%n

System node name, equivalent to the uname -n output

%m

Machine name, equivalent to the uname -m output

%t

Decimal value of time(2) system call 

%%

Literal % 

For example, if the global core file path is set to:

/var/core/core.%f.%p

and a sendmail process with PID 12345 terminates abnormally, it produces the following core file:

/var/core/core.sendmail.12345