UTERMINAL
TERMINAL
NEXT
$V1$
NEXT3
$PROMPT$
PAUSE
HILINE
BOTCLEAN
ENCORE
RUNAWAY
|^^^^^^^^^^| | |
| | | TERMINAL |
| RUNAWAY | | |
| | | |
-----------\ ------------
// \ ---------| |
__________________ \ | _______________________
/ - - - - - / | | \ - - - - - - - - \
/_________________/ | | _____________________\
| |
-------------------------
---------Terminal
COMPUTER
\\
GO
A runaway process is one that cannot
be stopped from your terminal.
To stop a runaway process, you need to first determine the
process identification number (PID) of the process and then
kill that process from another terminal (or from another
window on your monitor if you have "multiscreen" capabilities).
Assuming that you are the user who created the process
or a superuser and you are logged onto another terminal,
you must first determine the PID of the runaway process.
Please do so by using the ps -e command.
Please do so by using the ps -aux command.
$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
Please type ps -aux
Please type ps -aux
I will help you this time
$PROMPT$
FORGET1
$PROMPT$ ps -e
$PROMPT$ ps -aux
Observe the result on the terminal!
PID TTY TIME COMMAND
00 swapper
01 init
02 sh
00 getty
09 cron
14 runaway
14 ps -e
USER PID %CPU %MEM SZ RSS TT STAT TIME COMMAND
08 ps aux
21 /etc/init
06 /usr/lib/lpd
04 /etc/cron
08 runaway
10 -csh (csh)
At this point, let us assume that you've
determined that the process with the PID
of 20 is the runaway process that
of 14315 is the runaway process that
needs to be stopped with the appropriate
command. So please do so at the prompt.
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
You need to use the kill command with the -9 option.
Please type kill -9 20
Please type kill -9 14315
I will help you this time.
$PROMPT$
FORGET2
$PROMPT$ kill -9 20
$PROMPT$kill -9 14315
Observe the result on the terminal!
$PROMPT$
Finally, let us verify that the runaway process was
indeed killed (stopped), by typing ps -e again!
indeed killed (stopped), by typing ps -aux again!
$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
Please type ps -aux
Please type ps -aux
I will help you this time.
$PROMPT$
FORGET3
$PROMPT$ ps -e
$PROMPT$ ps -aux
Observe the result on the terminal!
PID TTY TIME COMMAND
0 ? 0:00 swapper
1 ? 0:01 init
24 co 0:02 sh
25 a1 0:00 getty
18 ? 0:09 cron
42 co 2:17 ps -e
USER PID %CPU %MEM SZ RSS TT STAT TIME COMMAND
08 ps aux
21 /etc/init
06 /usr/lib/lpd
04 /etc/cron
10 -csh (csh)
And indeed, the runaway process is gone.
Remember, however, that a user can always kill
his own processes. To kill someone else's
process, one must be a superuser!