Posted on

Linux LX0-104 Exam 2 samples – Question 3

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 $&

Correct Answer: A
Section: Shells, Scripting and Data Management

Leave a Reply

Your email address will not be published. Required fields are marked *