LPI
117-102 · Question #362
117-102 Question #362: 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.