1.

To know the exit status of a command, we can use ____(a) $$(b) $*(c) $?(d) $-The question was posed to me in quiz.My query is from Logical Operators and Conditional Execution topic in chapter Essential Shell Programming of Unix

Answer»

Right option is (c) $?

The EXPLANATION is: The parameter $? STORES the exit status of the last command. It displays the value if the command SUCCEEDS and a non ZERO value if it fails.



Discussion

No Comment Found

Related InterviewSolutions