exit
ShellBeginner In simulator In real LinuxLeave the current shell
Name: exit
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
exit is a shell builtin that ends the shell with an exit status (by default that of the last command). Interactively it closes the session or SSH login; in a script it ends the script.
Syntax
exit [N]Common options
| N | Exit status; 0 means success |