Which of the following commands prints the exit value of the most recently executed program in Bash?

Which of the following commands prints the exit value of the most recently executed program in Bash?
A . echo $?
B . echo $#
C . echo $exit
D . echo $status
E . echo $&

Answer: A

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments