Standard Unix & Bash Shell Exit Codes Reference
Conventional exit status codes (0–255) for CLI scripts and CI pipelines.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.0.0
| Exit Code | Meaning | Common Cause |
|---|---|---|
| 0 | Success | Command completed cleanly |
| 1 | General error | Assertion or runtime failure |
| 2 | Misuse of shell builtins | Invalid CLI flags/syntax |
| 126 | Not executable | Missing +x permission |
| 127 | Command not found | Binary missing from PATH |
| 137 | 128 + 9 (SIGKILL) | OOM killer or forced kill |
Technical Explanation
Conventional exit status codes (0–255) for CLI scripts and CI pipelines. Verified against authoritative technical standards.
Worked Examples
- Search or scan Standard Unix & Bash Shell Exit Codes Reference for exact codes, formulas, or standard limits.
Limitations & Assumptions
- Reference values reflect published standards as of the verification date.
Source References & Verification
Resource ID: ref-linux-exit-codes · Independently verified: 2026-11-25