Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 648 Bytes

File metadata and controls

32 lines (18 loc) · 648 Bytes

exit

The exit command is used to terminate a shell session. It is typically used when you are finished using the shell and want to return to the operating system.

For example, to exit the shell session with an exit status of 0, you would use the following command:

exit 0

To exit the shell session with an exit status of 1, you would use the following command:

exit 1

help

exit [status]

Exit the shell.

Arguments:

status
    Exit status (0 is success, nonzero is failure).

Options:

-h, --help
    Show this help message.

Exits the shell with the specified status. If no status is specified, the default status is 0.