Exit (command) explained
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 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
Further reading
- Book: Cooper. Jim. Special Edition Using MS-DOS 6.22, Third Edition. 2001. Que Publishing. 978-0789725738.
- Book: Peter Dyson. 1995. Mastering OS/2 Warp. Sybex. 978-0782116632.
- Book: Barrett, Daniel J.. 2012. Macintosh Terminal Pocket Guide: Take Command of Your Mac. O'Reilly. 978-1449328986.
- Book: Stanek, William R.. 2008. Windows Command-Line Administrator's Pocket Consultant, 2nd Edition. Microsoft Press. 978-0735622623.
External links
Notes and References
- https://archive.org/details/MSXDOS2 MSX-DOS version 2
- Web site: JaTomes Help - OS/2 Commands . www.jatomes.com . dead . https://web.archive.org/web/20190414130029/http://www.jatomes.com/Help/Os2Cmd.php . 2019-04-14.
- Web site: User Guide . www.bitsavers.org . 2018-09-16 . 2018-09-14 . https://web.archive.org/web/20180914132130/http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf . dead .
- Web site: MPE/iX Command Reference Manual. 2023-08-05. 2018-10-21. https://web.archive.org/web/20181021232213/http://www.teamnaconsulting.com/compresources/pdfs/c01687363.pdf. dead.
- Web site: Shell - KolibriOS wiki. wiki.kolibrios.org.
- Web site: Data . www.symbos.de.
- Web site: Exit3. Archiveddocs. docs.microsoft.com.
- Book: Wolverton. Van. Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. 2003. Microsoft Press. 0-7356-1812-7.
- https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf DR DOS 6.0 User Guide Optimisation and Configuration Tips
- Web site: Datalight ROM-DOS User's Guide. www.datalight.com.
- Web site: Terminate MATLAB program (Same as quit) - MATLAB exit.