By default in Linux if particular command/shell script is executed, it return two type of values which is used to see whether command or shell script executed is successful or not.
If return value is zero (0), command is successful.
If return value is nonzero, command is not successful or some sort of error executing command/shell script.
This value is know as Exit Status.
To find out exit status of command or shell script; use special variable of shell.