>_ linuxcommand.dev
Startseite exit
Shell

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