Shell Exit Codes

Integer between 0 and 255.

For Bash1:

  • 0 is success and 1 is all general error.
  • 2 is misuse.
  • 126 command cannot execute.
  • 127 command not found.
  • 128+n is serious error.
  • 130 is when you hit ctrl-C
  • -1 is error over the range of 255