LPI
117-101 · Question #10
You have two shell scripts, foo and bar. You wish to have bar execute if foo returns an exit status of 0 Select the correct command:
Sign in or unlock 117-101 to reveal the answer and full explanation for question #10. The question stem and answer options stay visible for context.
Question
You have two shell scripts, foo and bar. You wish to have bar execute if foo returns an exit status of 0 Select the correct command:
Options
- Afoo; bar
- Bfoo || bar
- Cfoo && bar
- Dfoo % bar
Unlock 117-101 to see the answer
You've previewed enough free 117-101 questions. Unlock 117-101 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.