Logical operators

Logical-operators

Logical operators can be used as conditional logic for connecting commands together

OperatorOutcome
&&Will run the next command if the first one succeeded
||Will run the next command if the first one failed
;Will run both commands regardless of the outcome

References