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;
John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!