LPI
117-102 · Question #120
Which command will print the exit value of the previous command to the screen in bash?
The correct answer is A. echo $? See the full explanation below for the reasoning.
Question
Which command will print the exit value of the previous command to the screen in bash?
Options
- Aecho $?
- Becho $#
- Cecho $exit
- Decho $status
- Eecho $&
How the community answered
(34 responses)- A74% (25)
- B3% (1)
- C6% (2)
- D3% (1)
- E15% (5)
Community Discussion
No community discussion yet for this question.