EMZETT.
Login

Exit Code 1 General Error (Linux)

In short: A command ended with exit code 1 (general error).

In more detail: Every command returns an exit code: 0 means success, anything else an error. Retrievable with echo $?.

In Depth

Possible causes

  • Program reports an error.
  • Wrong parameters.

Solutions

  1. Read the program’s output and error message.
  2. Check the options with man or --help.
  3. Debug the script with set -x (Bash).

See also: Bash, Shell, Command Line