Exam4Training

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

Exit mobile version