Bash Scripting - Variables
Which of the following is the correct syntax to print the exit status of the last command in a bash script?
$? holds the exit status of the last executed command.echo $? prints that exit status correctly.$? = Last command exit status [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions