Valid 102-500 Dumps shared by ExamDiscuss.com for Helping Passing 102-500 Exam! ExamDiscuss.com now offer the newest 102-500 exam dumps, the ExamDiscuss.com 102-500 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 102-500 dumps with Test Engine here:
When the command echo $ outputs 1, which of the following statements is true?
Correct Answer: C
The $? variable in bash is a special parameter that holds the exit status of the last command executed in the current shell. The exit status is a numerical value that indicates whether the command was successful (zero) or failed (non-zero). The echo command simply prints its arguments to the standard output. Therefore, when the command echo $? outputs 1, it means that the previous command failed with an exit status of 1. References: * [LPI Linux Essentials - Topic 103: Command Line Basics] * [Bash Special Parameters] * [Exit status - Wikipedia]