EMZETT.
Login

Exit Code 126/127 Not Executable / Command Not Found

In short: 126 means “not executable”, 127 “command not found”.

In more detail: Both often occur with scripts and installations.

In Depth

Possible causes

  • Missing execute permissions (126).
  • Command not installed or not in PATH (127).
  • Typo.

Solutions

  1. chmod +x script.sh for 126.
  2. Install the program or extend PATH for 127.
  3. Check the spelling.

See also: Bash, Shell, Linux