>_
linuxcommand.dev
Home
Roadmap
Contact
EN
Dark
>_
>_
linuxcommand.dev
Home
Roadmap
Contact
Legal Notice
Privacy Policy
Language
DE
EN
Design
Dark
Startseite
›
exit
Shell
exit
Exits the current shell session.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Last updated:
2025-10-08
Report error
Syntax
Copy
$
exit [STATUS]
Examples
Examples
$
exit
Examples
$
exit 0
Examples
$
exit 1
Typical use cases
Exit shell
exit
With exit code
exit 0
Note
Built-in Shell command. Exit code 0 = success, others = error.
Export
Text
JSON
Script