Exit Codes and Their Meaning

Updated

October 31, 2026

Exit Codes and Their Meaning

  • 0: Success.
  • 1: General non-specific error.
  • 2: Misuse of shell builtins (syntax error).
  • 126: Command invoked cannot execute (permission problem).
  • 127: Command not found.
  • 128+N: Fatal error with signal N (e.g. 130 = 128 + 2 for SIGINT).