>_ linuxcommand.dev
Startseite exit
Command Line Interface (CLI)

exit

Exits the current shell session.

Ubuntu CentOS Debian Arch SUSE Slackware Alpine Fedora
Verified: 2025-10-08
Syntax
$exit [STATUS]
Examples
$exit
$exit 0
$exit 1
Typical use cases
?
Standard usage
exit --help
Note Built-in shell command. Exit code 0 = Success, others = Error.
Export