Skip to main content
Version: 5.7.1

\exit

Exits with the specified code.

note

Exit command can only be used in the interactive and scripting modes.

Usage:

bash
\exit [code]

Parameters:

ParameterRequiredDescriptionDefault
codeRequiredThe exit code. If the given code is not in the [0,255] range, it exits with code 255.N/A

Example:

bash
\exit 10