exit

Usage

.exit [code]

Description

Exit the shell with an optional status code. If no status code is provided, the exit status will be the exit status of the last command executed.

Examples

Exit the shell with a status code of 0.

.exit

Exit the shell with a status code of 1.

.exit 1

Demonstration