1.

The syntax for using && is ______________(a) cmd1 && cmd2(b) cmd1 cmd2 &&(c) cmd1 & cmd2&(d) cmd1I got this question during an internship interview.This interesting question is from Logical Operators and Conditional Execution in section Essential Shell Programming of Unix

Answer»

Correct CHOICE is (a) cmd1 && cmd2

To explain: The SHELL provides two OPERATORS that allow conditional EXECUTION –the && and ||. The syntax for using these operators is:



Discussion

No Comment Found

Related InterviewSolutions