Are there any standard exit status codes in Linux?

后端 未结 10 1841
醉话见心
醉话见心 2020-11-22 06:46

A process is considered to have completed correctly in Linux if its exit status was 0.

I\'ve seen that segmentation faults often result in an exit status of 11, thou

10条回答
  •  借酒劲吻你
    2020-11-22 07:03

    '1' >>> Catchall for general errors

    '2' >>> Misuse of shell builtins (according to Bash documentation)

    '126'>>> Command invoked cannot execute

    '127'>>>"command not found"

    '128'>>> Invalid argument to exit

    '128+n'>>>Fatal error signal "n"

    '130'>>> Script terminated by Control-C

    '255'>>>Exit status out of range

    This is for bash. However, for other applications, there are different exit codes.

提交回复
热议问题