exit
NAME
exit - Cause the shell to exit with a status of nSYNOPSIS
exit [n]
DESCRIPTION
Cause the shell to exit with a status of n. If n is omitted, the exit status is that of the last command executed. A trap on EXIT is executed before the shell terminates.
SEE ALSO
This is extracted from the main bash man page, see there for more details.