encyclopegia.org

Exit (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.

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, IBM OS/2, DR FlexOS, HP MPE/iX, KolibriOS, SymbOS, cmd.exe, sh, ksh, Perl, AWK, PHP, TCL, PowerShell, and others. On MS-DOS, the command is available in versions 2 and later. DR DOS 6.0 and Datalight ROM-DOS 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. ==See also== exit (system call) Exit status List of Unix commands List of DOS commands ==References== ==Further reading== ==External links== exit: cause the shell to exit – Commands & Utilities Reference, The Single UNIX® Specification, Issue 7 from The Open Group exit | Microsoft Docs

References

No reference rows published for this article.

Cite this article

MLA

"Exit (command)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/exit-command. Accessed 24 November 2026.

Chicago

"Exit (command)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/exit-command.

APA

encyclopegia.org. (2026). Exit (command). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/exit-command

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1336331227 · 0.5 · snapshot enwiki-001336331227

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.