exit (command)
Cross-platform | |
Type | 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.
Implementations
Operating systems, shells and scripting languages providing this command include
TCL, PowerShell
and others.
On
ROM-DOS[10] also include an implementation of the
.
exit
command. It is also available in the open source MS-DOS emulator DOSBoxThe numerical computing environment MATLAB includes an exit
function with similar functionality.[11]
See also
- exit (system call)
- Exit status
- List of Unix commands
- List of DOS commands
References
- ^ MSX-DOS version 2
- ^ "JaTomes Help - OS/2 Commands". www.jatomes.com. Archived from the original on 2019-04-14.
- ^ "User Guide" (PDF). www.bitsavers.org. Archived from the original (PDF) on 2018-09-14. Retrieved 2018-09-16.
- ^ "MPE/iX Command Reference Manual" (PDF). Archived from the original (PDF) on 2018-10-21. Retrieved 2023-08-05.
- ^ "Shell - KolibriOS wiki". wiki.kolibrios.org.
- ^ "Data". www.symbos.de.
- ^ Archiveddocs. "Exit3". docs.microsoft.com.
- ISBN 0-7356-1812-7.
- ^ DR DOS 6.0 User Guide Optimisation and Configuration Tips
- ^ "Datalight ROM-DOS User's Guide" (PDF). www.datalight.com.
- ^ "Terminate MATLAB program (Same as quit) - MATLAB exit".
Further reading
- Cooper, Jim (2001). Special Edition Using MS-DOS 6.22, Third Edition. ISBN 978-0789725738.
- Peter Dyson (1995). Mastering OS/2 Warp. ISBN 978-0782116632.
- Barrett, Daniel J. (2012). Macintosh Terminal Pocket Guide: Take Command of Your Mac. ISBN 978-1449328986.
- Stanek, William R. (2008). Windows Command-Line Administrator's Pocket Consultant, 2nd Edition. ISBN 978-0735622623.
External links
Wikibooks has a book on the topic of: Guide to Windows Commands
The Wikibook Guide to Unix has a page on the topic of: Commands
- exit: cause the shell to exit – Commands & Utilities Reference, The Single UNIX® Specification, Issue 7 from The Open Group
- exit | Microsoft Docs