Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 101-500 Exam - Topic 2 Question 106 Discussion

Posted by Jina on Jan 22, 2025 at 07:19 PM

Which of the following are valid stream redirection operators within Bash? (Choose two.)

Suggested Answer: A, E

Get Premium 101-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
CO
Corrie 11 months ago
E is super useful for redirecting errors!
MA
Mariann 11 months ago
D is not valid, right? That looks weird.
CR
Craig 11 months ago
Wait, is #> even a thing? I’ve never seen that before.
FR
Franchesca 12 months ago
Totally agree, A is definitely one of them!
MA
Mabel 12 months ago
A and E are valid operators.
LA
Lawanda 1 year ago
I know `>` and `2>&1` are common, but I can't remember if `#>` is valid or just a comment symbol.
CH
Cheryll 1 year ago
I feel like `>>>` is not a valid operator in Bash. I might go with `<` and `2>&1`.
CL
Clay 1 year ago
I remember practicing with stream redirection, and I think `2>&1` is valid, but I can't recall if it was an option here.
LA
Lashunda 1 year ago
I think the `<` operator is definitely one of them, but I'm not sure about the second one.
RO
Roosevelt 1 year ago
I've got this! The valid stream redirection operators are A, < and E, 2>&1. The others are not standard Bash syntax.
CH
Christiane 1 year ago
Okay, let me see. I know < is for input redirection and > is for output redirection. I think E, 2>&1, is also a valid option, but I'm not sure about the others.
BE
Bernardine 1 year ago
Hmm, this one looks tricky. I'll need to think through the different redirection operators I've learned in Bash to figure this out.
AU
Audria 1 year ago
I'm pretty sure the valid stream redirection operators are < and >>, but I'm not 100% sure about the other options.
GE
Geraldine 2 years ago
I'm going with A and E as well. The other options don't look right for stream redirection in Bash.
EL
Elli 2 years ago
Haha, Tamala's got a point. I bet someone who's new to Bash would try that and get really confused. 'Why isn't this working?'
DO
Donette 2 years ago
↳ replying to Elli
E) 2>&1
TA
Tamesha 2 years ago
↳ replying to Elli
A) <
TA
Tamala 2 years ago
D is definitely not a valid option. Who would use triple greater-than signs for redirection? That's just silly.
BO
Bobbye 2 years ago
I agree with Gail. The greater-than symbol (>) is used for output redirection, and the 2>&1 syntax redirects stderr to stdout.
BE
Bernadine 2 years ago
↳ replying to Bobbye
I agree with Gail. The greater-than symbol (>) is used for output redirection, and the 2>&1 syntax redirects stderr to stdout.
AL
Allene 2 years ago
↳ replying to Bobbye
E) 2>&1
LA
Lashaunda 2 years ago
↳ replying to Bobbye
A) >
TO
Tora 2 years ago
I'm not sure about the other options, but D) >>> doesn't seem like a valid stream redirection operator.
MI
Mitzie 2 years ago
I agree with Tora, E) 2>&1 is definitely valid.
GA
Gail 2 years ago
Hmm, I think A and E are the valid options here. The less-than and greater-than symbols are used for input and output redirection, respectively.
RO
Rose 2 years ago
↳ replying to Gail
Yeah, A and E are the valid stream redirection operators in Bash.
LE
Lettie 2 years ago
↳ replying to Gail
A and E are the ones that deal with input and output redirection.
VE
Verdell 2 years ago
↳ replying to Gail
I think A and E make sense for stream redirection.
KA
Katy 2 years ago
↳ replying to Gail
I agree, A and E are the correct options.
TO
Tora 2 years ago
I think E) 2>&1 is valid.
0/2000 characters

Save Cancel