1.

Where is the exit status of a command stored?(a) $0(b) $>(c) $1(d) $?I got this question in final exam.This key question is from Shell Programming using Various Commands in section Essential Shell Programming of Unix

Answer»

The correct choice is (d) $?

Explanation: The exit STATUS of a command is that particular value which is returned by the command to its PARENT. This value is STORED in $?.



Discussion

No Comment Found

Related InterviewSolutions