Exit status upon unsuccessful termination of command
When a command has terminated successfully, it returns the exit code '0.'
If a command has terminated unsuccessfully, it returns an exit code other than '0' and a message is displayed.
Refer to the following sections when you execute a command from the command prompt and intend to use the exit status.