Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash exit code status last command

# The special variable $? returns the exit status of the last executed command:
echo $?
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #bash #exit #code #status #command
ADD COMMENT
Topic
Name
9+1 =