DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

NAME

ps - Display the process table

SYNOPSIS

ps
psl address

DESCRIPTON

The ps macro takes no arguments. It displays the process table in a fashion like that of the 'ps -elf' command. It is possible to tell from this table the state of the process (SLP, ONP, RUN) and whether the process is currently swapped out.

The psl macro is called as a subroutine by ps. It takes the address of a process and prints one line of information about it. It is sometimes useful when called by itself.

Typical output looks like this:


S> ps
ADDRESS  PID   PPID  UID   FLAGS    K U R WCHAN    ST  COMMAND
D1327C00 08007 05378 00103 00102010 - - - D12A4800 SLP vi proc.h
D10C5E00 08005 05444 00103 00102010 - - - D12AFB00 SLP vi proc
D10C6400 07984 07983 00103 00002010 - - - D12A7600 SLP rlogin unity -l isvunix
D10CBE00 07983 07982 00103 00102010 - - - D12D0500 SLP rlogin unity -l isvunix
D12DEA00 07982 07980 00103 00102010 - - - D10CBE00 SLP sh /home/bin/runity
D10C9E00 07980 00001 00103 00502010 - - - D02FF49C SLP /usr/X/bin/uterm -geometr

S> psl *curproc
D10CAE00 05572 05571 00000 00102010 - - 0          ONP kcrash -k /dev/mem /unix

DEFINED IN

proc.k

SEE ALSO

pid, proc

APPENDIX A: Alphabetic Index of Macros