Home Learn Linux Linux Answers Applications Why did the shell command fail with exit code 1?
  • Read the man page for the command. For example, if the command were "grep" you could do "man grep". The grep man page has an EXIT STATUS section, for example.

    The exit status is 0 if selected lines are found, and 1 if not found.
    If an error occurred the exit status is 2. (Note: POSIX error handling
    code should check for '2' or greater.)

    Answered by kevin.dankwardt
    2 years ago
    0 0
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category Applications

Upcoming Linux Foundation Courses

  1. LFD320 Linux Kernel Internals and Debugging
    03 Nov » 07 Nov - Virtual
  2. LFS416 Linux Security
    03 Nov » 06 Nov - Virtual
  3. LFS426 Linux Performance Tuning
    10 Nov » 13 Nov - Virtual

View All Upcoming Courses

Community Answers - Search

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board