UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
BOTCLEAN
ENCORE5
CLEAN
ENCORE
BOX
COMMAND
GO
ps
SYNTAX
ps [ options ]
FUNCTION
Reports process status, i.e. running,
sleeping, waiting, stopped, terminated, etc.
SOME OPTIONS
-a - prints information about all terminal processes
-e - prints the environment as well as the
arguments to the command
-u - a user-oriented printout is produced
-x - asks even about processes with no terminal
-t tlist - restricts information to the processes
associated with terminals in the tlist.
Let's look at three processes, P1, P2 and P3,
where P1 is running, P2 is waiting and P3 is sleeping.
P1
P2
P3
Let's use the ps command to get
the status of all processes on your system:
Please type: ps -aux
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ps -aux
Please type ps -aux
I guess I must type this for you:
$PROMPT$
FORGET1
Observe the result on the terminal, and note that
PID is the process id, %CPU is the percentage
of CPU time taken, TT is the terminal
designation, TIME amount of time the process
has been running, COMMAND the name of the command!
$PROMPT$ps -aux
[Press <CR> to see the result:]
DOSJMP
USER PID %CPU SZ TT STAT TIME COMMAND
jeff 9616 29.7 57 p6 R 2:00 pr -2 file
bob 9726 26.9 261 d5 R 0:01 ps -aux
ann 9010 14.9 779 p5 R 1:18 gemacs
mary 9585 1.7 251 i0 S 0:08 vi 4-ses
root 9699 1.5 110 ? S 0:00 /usr/lib/lpd
root 204 0.1 65 ? S 11:06 /etc/cron
root 0 0.0 0 ? D 2:24 swapper
root 1 0.0 70 ? I 8:14 init