Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 702-100 Topic 1 Question 18 Discussion

Actual exam question for LPI's 702-100 exam
Question #: 18
Topic #: 1
[All 702-100 Questions]

Which of the following excerpts is a valid if condition in the Bourne shell?

A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Jacquelyne
2 days ago
Hmm, this is a tricky one. I'm leaning towards Option D, but I'm not totally sure. Maybe I should have paid more attention in my shell scripting class.
upvoted 0 times
...
Bettina
13 days ago
I'm going with Option C. The single square brackets `[` are also a valid way to write an if condition in the Bourne shell.
upvoted 0 times
...
Vilma
14 days ago
Why do you think Option A is correct?
upvoted 0 times
...
Paola
17 days ago
I disagree, I believe Option A is the correct if condition.
upvoted 0 times
...
Demetra
18 days ago
Option B looks like the correct if condition in the Bourne shell. The use of the double square brackets `[[` is a common way to test conditions in shell scripting.
upvoted 0 times
...
Vilma
24 days ago
I think the valid if condition in the Bourne shell is Option C.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77