QuestionQ52

VerifiedEssential Commands

When the command echo $ produces 1, which of the following statements is true?

Explanation

In POSIX-like shells, $? expands to the exit status of the command executed immediately before it. A displayed value of 1 therefore represents that prior command’s exit value.

Community Discussion

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