CompTIA
LX0-104 · Question #538
LX0-104 Question #538: Real Exam Question with Answer & Explanation
The correct answer is A: echo $?. See the full explanation below for the reasoning.
Question
Which of the following commands will print the exit value of the previous command to the screen in bash?
Options
- Aecho $?
- Becho $#
- Cecho $exit
- Decho $status
- Eecho $&}
Community Discussion
No community discussion yet for this question.