Exit (command)

From Wikipedia, the free encyclopedia
Revision as of 06:38, 7 December 2024 by imported>A876 (changed short description. +comma.)
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:Lowercase title Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters".Template:Main other 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

Template:Reflist

Further reading

  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".

External links

Template:Sister project Template:Sister project

Script error: No such module "Navbox". Template:Windows commands


Template:Asbox

  1. MSX-DOS version 2
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "citation/CS1".
  5. Script error: No such module "citation/CS1".
  6. Script error: No such module "citation/CS1".
  7. Script error: No such module "citation/CS1".
  8. Script error: No such module "citation/CS1".
  9. DR DOS 6.0 User Guide Optimisation and Configuration Tips
  10. Script error: No such module "citation/CS1".
  11. Script error: No such module "citation/CS1".