CompTIA Linux+ Powered by LPI (LX0-103) — Question 3
Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)
Answer options
- A. <
- B. <<<
- C. >
- D. >>>
- E. %>
Correct answer: A, B, C
Explanation
The correct answers are A, B, and C, as these are recognized Bash operators for redirecting input and output streams. Option A (<) is used for input redirection, B (<<<) is known as a here-string for passing a string as input, and C (>) is used for output redirection. Options D (>>>) and E (%>) are not valid redirection operators in Bash.