LPI
117-102 · Question #362
Which of the following commands 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 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 $&}
How the community answered
(32 responses)- A78% (25)
- B6% (2)
- C3% (1)
- D13% (4)
Community Discussion
No community discussion yet for this question.