Multiple choice technology programming languages

The syntax for OR list is

  1. command1 || command2

  2. command1 && command2

  3. command1 // command2

  4. command1 | command2

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In shell scripting, the || operator represents an OR list, executing the second command only if the first fails. The && operator is an AND list, | is a pipe that redirects output, and // is not a valid shell command separator.