MiniUnix/usr/man/man1/ps.1

Find at most related files.
including files from this version of Unix.

.th PS I 3/20/74
.sh NAME
ps \*- process status
.sh SYNOPSIS
.bd ps
[
.bd aklx
]
[ namelist ]
.sh DESCRIPTION
.it Ps
prints certain indicia about active
processes.
The
.bd a
flag asks for information about all processes with typewriters (ordinarily
only one's own processes are displayed);
.bd x
asks even about processes with no typewriter;
.bd l
asks for a long listing.
Ordinarily only the typewriter number (if not one's own),
the process number,
and an approximation to the command line are given.
If the
.bd k
flag is specified,
the file
.it /usr/sys/core
is used in place of
.it /dev/mem.
This is used for
postmortem system debugging.
If a second argument is given,
it is taken to be the file containing the system's namelist.
.s3
The long listing is columnar and contains
.s3
.lp +5 0
The name of the process's control typewriter.
.s3
.lp +5 0
Flags associated with the process.
01: in core;
02: system process;
04: locked in code (e.g. for physical I/O);
10: being swapped;
20: being traced by another process.
.s3
.lp +5 0
The state of the process.
0: nonexistent;
S: sleeping;
W: waiting;
R: running;
Z: terminated;
T: stopped.
.s3
The user ID of the process owner.
.s3
The process ID of the process; as in certain cults it is possible to kill a process
if you know its true name.
.s3
The priority of the
process; high numbers mean low priority.
.s3
The size in blocks of the core image of the process.
.s3
The event for which the process is waiting or sleeping;
if blank, the process is running.
.s3
The command and its arguments.
.s3
.i0
.dt
.it Ps
makes an educated guess as to the file name
and arguments given when the process was created
by examining core memory or the swap area.
The method is inherently somewhat unreliable and in any event
a process is entitled to destroy this information,
so the names cannot be counted on too much.
.sh FILES
/unix		system namelist
.br
/dev/mem	core memory
.br
/usr/sys/core	alternate core file
.br
/dev	searched to find swap device and typewriter names
.sh "SEE ALSO"
kill (I)
.sh BUGS