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
-e - prints information about all processes
-d - prints info. about all processes, except
process group leaders
-f - generates a full listing
-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 -e
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ps -e
Please type ps -e
I guess I must type this for you:
$PROMPT$
FORGET1
Observe the result on the terminal, and note that
PID is the process id, TTY is the terminal
designation, TIME amount of time the process
has been running, COMMAND the name of the command!
$PROMPT$ps -e
[Press <CR> to see the result:]
DOSJMP
PID TTY TIME COMMAND
0 ? 23:08 swapper
1 ? 0:02 init
0 ? 0:00 swapper
97 b 0:06 sh
115 00 0:04 uucico
93 ? 0:00 cron
119 b 0:01 ps