exit (command)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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[edit]

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 also includes an implementation of the exit command.[9] It is also available in the open source MS-DOS emulator DOSBox.

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

See also[edit]

References[edit]

  1. ^ MSX-DOS version 2
  2. ^ http://www.jatomes.com/Help/Os2Cmd.php#EXIT
  3. ^ "User Guide" (PDF). www.bitsavers.org.
  4. ^ "MPE/iX Command Reference Manual" (PDF).
  5. ^ "Shell - KolibriOS wiki". wiki.kolibrios.org.
  6. ^ "Data". www.symbos.de.
  7. ^ Archiveddocs. "Exit3". docs.microsoft.com.
  8. ^ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
  9. ^ DR DOS 6.0 User Guide Optimisation and Configuration Tips
  10. ^ https://www.mathworks.com/help/matlab/ref/exit.html

Further reading[edit]

External links[edit]