exit (command)
exit
is a command on the terminal in many operating systems and scripting languages. It is used to stop all processes that are running in the terminal and close the terminal window. This is also the command to use to safely end all processes in the terminal.
Using this command will log the user out of his/her session in the terminal. Many scripting languages, like Perl and PHP uses this command.