1.

When we use ||, both the commands are executed.(a) True(b) FalseI got this question in an international level competition.My question is from Logical Operators and Conditional Execution topic in portion Essential Shell Programming of Unix

Answer»

Right option is (B) False

Best explanation: || is an operator used by the SHELL for CONDITIONAL execution. It plays an INVERSE role in which the second COMMAND is executed only when the first fails.



Discussion

No Comment Found

Related InterviewSolutions