rsc | 058b011 | 2005-01-03 06:40:20 +0000 | [diff] [blame] | 1 | .TH CORE 1 |
| 2 | .SH NAME |
| 3 | core \- print information about dead processes |
| 4 | .SH SYNOPSIS |
| 5 | .B core |
| 6 | [ |
| 7 | .I dir |
| 8 | | |
| 9 | .I corefile |
| 10 | ]... |
| 11 | .SH DESCRIPTION |
| 12 | .I Core |
| 13 | prints information about dead processes that have |
| 14 | been saved as core dumps. |
| 15 | .PP |
| 16 | Core reads its arguments in order. |
| 17 | If a directory is encountered, |
| 18 | .I core |
| 19 | reads every core file named |
| 20 | .B core.* |
| 21 | or |
| 22 | .B *.core |
| 23 | in that directory. |
| 24 | .PP |
| 25 | For each core file read, |
| 26 | .I core |
rsc | 3264d2e | 2005-01-23 22:55:46 +0000 | [diff] [blame] | 27 | prints the command |
| 28 | .B stack |
| 29 | .IR file , |
| 30 | the date and time the core was generated, |
| 31 | and |
| 32 | the command that generated it. |
| 33 | The |
| 34 | .B stack |
| 35 | command, if run, prints a stack trace of the |
| 36 | executing thread at the time of the core dump; |
| 37 | see |
| 38 | .IR db (1). |
rsc | 058b011 | 2005-01-03 06:40:20 +0000 | [diff] [blame] | 39 | .PP |
| 40 | If no arguments are given, |
| 41 | .I core |
| 42 | searches the directory |
| 43 | .B $COREDIR |
| 44 | for core files; |
| 45 | if |
| 46 | .B $COREDIR |
| 47 | is not set, |
| 48 | .I core |
| 49 | searches the current directory. |
| 50 | .SH SOURCE |
rsc | c3674de | 2005-01-11 17:37:33 +0000 | [diff] [blame] | 51 | .B \*9/src/cmd/core.c |
rsc | 058b011 | 2005-01-03 06:40:20 +0000 | [diff] [blame] | 52 | .SH "SEE ALSO |
| 53 | .IR acid (1), |
| 54 | .IR db (1), |
| 55 | .IR core (5) |