Linux.com

Home Learn Linux Linux Answers Applications Why did the shell command fail with exit code 1?
Answers
  • 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.

    EXIT STATUS
    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. LFD331 Developing Linux Device Drivers
    13 Oct » 17 Oct - Virtual
    Details
  2. LFS425 Linux Performance Tuning Crash Course
    16 Oct » 16 Oct - Düsseldorf, Germany
    Details
  3. LFS220 Linux System Administration
    20 Oct » 23 Oct - Virtual
    Details

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