PrepAway - Latest Free Exam Questions & Answers

Which of the following environmental variables represents the PID value of the last child process?

Which of the following environmental variables represents the PID value of the last child process?

PrepAway - Latest Free Exam Questions & Answers

A.
$?

B.
$!

C.
$!!

D.
$$

Explanation:

The $! environmental variable represents the PID value of the last child process.
Answer option D is incorrect. The $$ environmental variable represents the PID of the running
shell.
Answer option A is incorrect. The $? environmental variable results in the value zero if the last
command was executed successfully, otherwise it displays the value one.
Answer option C is incorrect. It is an invalid Linux standard environmental variable.


Leave a Reply