exit (command)

In computing, exit is a command used in many operating system command-line shells and scripting languages.

The command causes the shell or program to terminate. If performed within an interactive command shell, the user is logged out of their current session, and/or user's current console or terminal connection is disconnected. Typically an optional exit code can be specified, which is typically a simple integer value that is then returned to the parent process.

Operating systems, shells and scripting languages providing this command include OS/2, FlexOS[1], KolibriOS[2], cmd.exe[3], sh, ksh, Perl, AWK, PHP, TCL, PowerShell and others.

The command is also available in the open source MS-DOS emulator DOSBox.

See also

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.