Specifies a single system-wide directory where all core files of any processes will be dumped.
The syscorepath command enables a system administrator to set up a single system-wide directory in which to dump core files from any processes. This can ease administrative tasks in managing file-system space and provides a single, known directory in which to find core files. By default, the core file is created in the working directory of the process being core-dumped.
The directory should have read and write privileges for all users on the system. If a user does not have permission to write in the directory, a core file will not be created. Core files will be given unique names based on the process ID and time, so a core file will be named core.pid.ddhhmmss, where pid is the process ID, dd is the day of the month, hh is the hour in 24-hour format, mm is minutes, and ss is seconds.
Item | Description |
---|---|
-c | Unsets the current directory specified as the repository for core files. Subsequent core files will be created in the working directory of the process. |
-g | Displays current directory specified as the repository for core files. |
-p DirectoryName | Specifies the directory to use as a repository for core files. DirectoryName must be a valid directory name. |
Item | Description |
---|---|
0 | The command completed successfully. |
>0 | An error occurred. |
Only the root user can run this command.
syscorepath -p /core
syscorepath -g
syscorepath -c
Item | Description |
---|---|
/usr/bin/syscorepath | Contains the syscorepath command. |