exit (command)

In computing, exit is a command used in many operating system command-line shells and scripting languages.

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.

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.

[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.