home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man1 / ps.1 < prev    next >
Encoding:
Text File  |  1975-06-26  |  2.0 KB  |  94 lines

  1. .th PS I 3/20/74
  2. .sh NAME
  3. ps \*- process status
  4. .sh SYNOPSIS
  5. .bd ps
  6. [
  7. .bd aklx
  8. ]
  9. [ namelist ]
  10. .sh DESCRIPTION
  11. .it Ps
  12. prints certain indicia about active
  13. processes.
  14. The
  15. .bd a
  16. flag asks for information about all processes with typewriters (ordinarily
  17. only one's own processes are displayed);
  18. .bd x
  19. asks even about processes with no typewriter;
  20. .bd l
  21. asks for a long listing.
  22. Ordinarily only the typewriter number (if not one's own),
  23. the process number,
  24. and an approximation to the command line are given.
  25. If the
  26. .bd k
  27. flag is specified,
  28. the file
  29. .it /usr/sys/core
  30. is used in place of
  31. .it /dev/mem.
  32. This is used for
  33. postmortem system debugging.
  34. If a second argument is given,
  35. it is taken to be the file containing the system's namelist.
  36. .s3
  37. The long listing is columnar and contains
  38. .s3
  39. .lp +5 0
  40. The name of the process's control typewriter.
  41. .s3
  42. .lp +5 0
  43. Flags associated with the process.
  44. 01: in core;
  45. 02: system process;
  46. 04: locked in code (e.g. for physical I/O);
  47. 10: being swapped;
  48. 20: being traced by another process.
  49. .s3
  50. .lp +5 0
  51. The state of the process.
  52. 0: nonexistent;
  53. S: sleeping;
  54. W: waiting;
  55. R: running;
  56. Z: terminated;
  57. T: stopped.
  58. .s3
  59. The user ID of the process owner.
  60. .s3
  61. The process ID of the process; as in certain cults it is possible to kill a process
  62. if you know its true name.
  63. .s3
  64. The priority of the
  65. process; high numbers mean low priority.
  66. .s3
  67. The size in blocks of the core image of the process.
  68. .s3
  69. The event for which the process is waiting or sleeping;
  70. if blank, the process is running.
  71. .s3
  72. The command and its arguments.
  73. .s3
  74. .i0
  75. .dt
  76. .it Ps
  77. makes an educated guess as to the file name
  78. and arguments given when the process was created
  79. by examining core memory or the swap area.
  80. The method is inherently somewhat unreliable and in any event
  81. a process is entitled to destroy this information,
  82. so the names cannot be counted on too much.
  83. .sh FILES
  84. /unix        system namelist
  85. .br
  86. /dev/mem    core memory
  87. .br
  88. /usr/sys/core    alternate core file
  89. .br
  90. /dev    searched to find swap device and typewriter names
  91. .sh "SEE ALSO"
  92. kill (I)
  93. .sh BUGS
  94.