An exit code or exit status tells us about the status of the last executed command. The basic ideology is that programs return the exit code to indicate that it executed successfully. There are many more exit codes other than 0 and 1, which I'll cover in this article.
Table of contents
Various exit codes in Linux shellRetrieving the exit codeExit code 0Exit code 1Exit code 2Exit code 126Exit code 127Exit code series 128+nWhat if the code exceeds 255?Wrapping up1 Comment
Sort: