exit [status]Arguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
exitCloses the current shell session.
exit 1Ends a script with a nonzero status.
| Field | Details |
|---|---|
| Command | exit |
| Category | Shell and Environment |
| Primary use | Exits a shell or script. |
| Syntax | exit [status] |