QuestionQ15

The Power of the Command Line

What return value does a shell script produce after it executes successfully?

  • A 1
  • B 0
  • C -1
  • D -255
  • E 255
Explanation

A successful shell-script execution returns exit status 0; nonzero exit statuses conventionally signal failure or another exceptional condition.

Community Discussion

No comments yet. Be the first to start the discussion!