Posted on

Linux LX0-104 Exam 2 samples – Question 10

When the command echo $? outputs 1, which of the following statements are true?

A. It is the process ID of the echo command.
B. It is the process ID of the current shell.
C. It is the exit value of the command executed immediately before echo.
D. It is the exit value of the echo command.

Correct Answer: C
Section: Shells, Scripting and Data Management

Leave a Reply

Your email address will not be published. Required fields are marked *