1.

When we use &&, the second command is executed only when first succeeds.(a) True(b) FalseThis question was posed to me during a job interview.My question is taken from Logical Operators and Conditional Execution in chapter Essential Shell Programming of Unix

Answer»

The CORRECT answer is (a) True

Explanation: The shell provides two operators that allow conditional EXECUTION, one of which is &&. It delimits two commands; the second COMMAND is EXECUTED only when the FIRST command succeeds.



Discussion

No Comment Found

Related InterviewSolutions