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. LFD320 Linux Kernel Internals and Debugging
    04 Aug » 08 Aug - Virtual
    Details
  2. LFD405 Embedded Linux Development with Yocto Project
    04 Aug » 07 Aug - Santa Clara, CA
    Details
  3. LFD312 Developing Applications For Linux
    18 Aug » 22 Aug - 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