Novell
050-720 · Question #278
You would like to run command2 only if command1 did not complete successfully. Which command accomplishes this task?
The correct answer is B. command1 || command2. See the full explanation below for the reasoning.
Question
You would like to run command2 only if command1 did not complete successfully. Which command accomplishes this task?
Options
- Acommand1 ;; command2
- Bcommand1 || command2
- Ccommand1 >> command2
- Dcommand1 && command2
How the community answered
(32 responses)- A13% (4)
- B78% (25)
- C3% (1)
- D6% (2)
Community Discussion
No community discussion yet for this question.