Bash Scripting - Error Handling
Which of the following is the correct way to check the exit code of the last command in bash?
$? holds the exit code of the last command.echo $? prints the exit code correctly.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions