Which of the following command sequences will John use to accomplish the task?

John works as a Network Administrator for Perfect Solutions
Inc. The company has a Linux-based network. John is working
as a root user on the Linux operating system. You want to run
two programs, foo and bar. You also want to ensure that bar is
executed if and only if foo has executed successfully. Which of
the following command sequences will John use to accomplish
the task?

John works as a Network Administrator for Perfect Solutions
Inc. The company has a Linux-based network. John is working
as a root user on the Linux operating system. You want to run
two programs, foo and bar. You also want to ensure that bar is
executed if and only if foo has executed successfully. Which of
the following command sequences will John use to accomplish
the task?

A.
foo; bar;

B.
foo && bar;

C.
foo || bar;

D.
foo | bar;



Leave a Reply 0

Your email address will not be published. Required fields are marked *