Shell Exit Codes
Exit codes used by POSIX shells (bash, sh, zsh) to indicate the result of a command or script. Codes 128+N indicate termination by signal N.
References
17 codes
-
0Success -
1General error -
2Misuse of shell built-in -
126Command cannot execute -
127Command not found -
128Invalid exit argument -
129Terminated by SIGHUP -
130Terminated by SIGINT -
131Terminated by SIGQUIT -
132Terminated by SIGILL -
133Terminated by SIGTRAP -
134Terminated by SIGABRT -
137Terminated by SIGKILL -
139Terminated by SIGSEGV -
141Terminated by SIGPIPE -
143Terminated by SIGTERM -
255Exit status out of range