You start to execute a program by using the following command:
~/bigscript &
You then determine that the process is not behaving as expected, and decide that you need to
terminate the process. Based on the information shown below, what is the process number you
should terminate?
A.
15163
B.
15156
C.
15166
D.
15165
Explanation:
From the output exhibit we can deduce that the shell has id 15156.
It has spawned three subprocesses:
grep: id 15166
ps –aef 15165
The remaining 15163 must be the subshell (see note below).
This is the id of the process which should be terminated.
Reference: man ps
Note: The command ~/bigscript & starts ~/bigscript in a separate subshell.
Echo $ displays the exit status of a command.
A