exit

exit (built-in Bash command)

The manual page and help for the exit built-in Bash command. The exit command exits the shell with N exit codes. If N is missing, it exits with the exit code of the last command.