New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 101-500 Exam - Topic 2 Question 106 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 106
Topic #: 2
[All 101-500 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: A, E

Contribute your Thoughts:

0/2000 characters
Corrie
3 months ago
E is super useful for redirecting errors!
upvoted 0 times
...
Mariann
3 months ago
D is not valid, right? That looks weird.
upvoted 0 times
...
Craig
3 months ago
Wait, is #> even a thing? I’ve never seen that before.
upvoted 0 times
...
Franchesca
4 months ago
Totally agree, A is definitely one of them!
upvoted 0 times
...
Mabel
4 months ago
A and E are valid operators.
upvoted 0 times
...
Lawanda
4 months ago
I know `>` and `2>&1` are common, but I can't remember if `#>` is valid or just a comment symbol.
upvoted 0 times
...
Cheryll
4 months ago
I feel like `>>>` is not a valid operator in Bash. I might go with `<` and `2>&1`.
upvoted 0 times
...
Clay
4 months 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.
upvoted 0 times
...
Lashunda
5 months ago
I think the `<` operator is definitely one of them, but I'm not sure about the second one.
upvoted 0 times
...
Roosevelt
5 months ago
I've got this! The valid stream redirection operators are A, < and E, 2>&1. The others are not standard Bash syntax.
upvoted 0 times
...
Christiane
5 months 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.
upvoted 0 times
...
Bernardine
5 months 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.
upvoted 0 times
...
Audria
5 months ago
I'm pretty sure the valid stream redirection operators are < and >>, but I'm not 100% sure about the other options.
upvoted 0 times
...
Geraldine
12 months ago
I'm going with A and E as well. The other options don't look right for stream redirection in Bash.
upvoted 0 times
...
Elli
1 year 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?'
upvoted 0 times
Donette
11 months ago
E) 2>&1
upvoted 0 times
...
Tamesha
12 months ago
A) <
upvoted 0 times
...
...
Tamala
1 year ago
D is definitely not a valid option. Who would use triple greater-than signs for redirection? That's just silly.
upvoted 0 times
...
Bobbye
1 year ago
I agree with Gail. The greater-than symbol (>) is used for output redirection, and the 2>&1 syntax redirects stderr to stdout.
upvoted 0 times
Bernadine
11 months ago
I agree with Gail. The greater-than symbol (>) is used for output redirection, and the 2>&1 syntax redirects stderr to stdout.
upvoted 0 times
...
Allene
12 months ago
E) 2>&1
upvoted 0 times
...
Lashaunda
12 months ago
A) >
upvoted 0 times
...
...
Tora
1 year ago
I'm not sure about the other options, but D) >>> doesn't seem like a valid stream redirection operator.
upvoted 0 times
...
Mitzie
1 year ago
I agree with Tora, E) 2>&1 is definitely valid.
upvoted 0 times
...
Gail
1 year 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.
upvoted 0 times
Rose
11 months ago
Yeah, A and E are the valid stream redirection operators in Bash.
upvoted 0 times
...
Lettie
11 months ago
A and E are the ones that deal with input and output redirection.
upvoted 0 times
...
Verdell
11 months ago
I think A and E make sense for stream redirection.
upvoted 0 times
...
Katy
12 months ago
I agree, A and E are the correct options.
upvoted 0 times
...
...
Tora
1 year ago
I think E) 2>&1 is valid.
upvoted 0 times
...

Save Cancel