When the command echo $ outputs 1, which of the following statements is true?
When the command echo $ outputs 1, which of the following statements is true?
When the command echo $ outputs 1, it indicates that the $ variable being echoed contains the process ID of the current shell. The use of $ in this context is to retrieve the process ID of the shell instance that is running the command.
If answer C is correct then the Question should have been "echo S?"
No, it should actually be... echo $?
In use it would actually be "echo $?"
Missing "?" in question :) => echo $? to return exit codes.