Software:exit (command)

From HandWiki
Short description: Command of many operating system command line interpreters and scripting languages

exit
ReactOS-0.4.13 exit command 667x434.png
The ReactOS exit command
Developer(s)Various open-source and commercial developers
Operating systemCross-platform
TypeCommand

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.

Implementations

Operating systems, shells and scripting languages providing this command include Microsoft MSX-DOS version 2,[1] IBM OS/2,[2] DR FlexOS,[3] HP MPE/iX,[4] KolibriOS,[5] SymbOS,[6] cmd.exe,[7] sh, ksh, Perl, AWK, PHP, TCL, PowerShell and others.

On MS-DOS, the command is available in versions 2 and later.[8] DR DOS 6.0[9] and Datalight ROM-DOS[10] also include an implementation of the exit command. It is also available in the open source MS-DOS emulator DOSBox.

The numerical computing environment MATLAB includes an exit function with similar functionality.[11]

See also

References

Further reading

  • Special Edition Using MS-DOS 6.22, Third Edition. Que Publishing. 2001. ISBN 978-0789725738. 
  • Peter Dyson (1995). Mastering OS/2 Warp. Sybex. ISBN 978-0782116632. 
  • Barrett, Daniel J. (2012). Macintosh Terminal Pocket Guide: Take Command of Your Mac. O'Reilly. ISBN 978-1449328986. 
  • Stanek, William R. (2008). Windows Command-Line Administrator's Pocket Consultant, 2nd Edition. Microsoft Press. ISBN 978-0735622623. 

External links