Exam LFCS All QuestionsBrowse all questions from this exam
Question 113

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

    Correct Answer: B

    When the command echo $ outputs 1, it indicates that the $ variable being echoed contains the process ID of the current shell. The use of $ in this context is to retrieve the process ID of the shell instance that is running the command.

Discussion
stef_88Option: C

If answer C is correct then the Question should have been "echo S?"

Funkslinger

No, it should actually be... echo $?

Funkslinger

In use it would actually be "echo $?"

boorceOption: C

Missing "?" in question :) => echo $? to return exit codes.