Exit in shell Can control the exit status of a shell script with exit Eg: exit exit 0 exit 1 Useful when the command in an if statement is another shell script: if another_script; then ... fi