If you want to store the exit status of a command in a variable, you would typically use the _________ built-in variable.

  • $?
  • $!
  • $#
  • $@
If you want to store the exit status of a command in a variable, you would typically use the $? built-in variable. The $? variable contains the exit status of the last command executed, where 0 usually indicates success, and non-zero values indicate an error or failure.
Add your answer
Loading...

Leave a comment

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