What is the significance of $? ?

$? gives the exit status of the last command that was executed.

Category: Shell Scripting Interview Questions.