nerdexam
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)
  • A
    13% (4)
  • B
    78% (25)
  • C
    3% (1)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 050-720 Practice