exit

exit [n]

Exit the shell with a status of n; if none is specified, use the exit code from the last command executed. An EOF condition will also cause the shell to exit, unless the IGNORE_EOF option is set.