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. LFS230 Linux Network Management
    06 Oct » 09 Oct - Virtual
  2. LFD331 Developing Linux Device Drivers
    13 Oct » 17 Oct - Virtual
  3. LFS430 Linux Enterprise Automation
    13 Oct » 16 Oct - 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