| exit | |
|---|---|
TheReactOS exit command | |
| Developers | Variousopen-source andcommercial developers |
| Operating system | Cross-platform |
| Type | Command |
Incomputing,exit is acommand used in manyoperating systemcommand-lineshells andscripting languages.
The command causes the shell or program toterminate. If performed within an interactive command shell, the user is logged out of their currentsession, and/or user's currentconsole orterminal connection is disconnected. Typically an optionalexit code can be specified, which is typically a simple integer value that is then returned to theparent process.
Operating systems, shells, and scripting languages providing this command includeMicrosoftMSX-DOS version 2,[1]IBMOS/2,[2]DRFlexOS,[3]HPMPE/iX,[4]KolibriOS,[5]SymbOS,[6]cmd.exe,[7]sh,ksh,Perl,AWK,PHP,TCL,PowerShell, and others.
OnMS-DOS, the command is available in versions 2 and later.[8]DR DOS 6.0[9] andDatalightROM-DOS[10] also include an implementation of theexit command. It is also available in theopen source MS-DOSemulatorDOSBox.
Thenumerical computing environmentMATLAB includes anexit function with similar functionality.[11]