LPI
117-102 · Question #362
Which of the following commands will print the exit value of the previous command to the screen in bash?
Sign in or unlock 117-102 to reveal the answer and full explanation for question #362. The question stem and answer options stay visible for context.
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 $&}
Unlock 117-102 to see the answer
You've previewed enough free 117-102 questions. Unlock 117-102 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.