The three valid stream redirection operators within Bash are A. <, C. >, and D. >>.
Explanation:
< is used to redirect standard input from a file. For example, command < inputfile.
<<< is used to redirect standard input from a string. For example, read -r varname <<< "string".
> is used to redirect standard output to a file, overwriting its previous content. For example, command > outputfile.
>> is used to redirect standard output to a file, appending its content to the end of the file. For example, command >> outputfile.
%> is not a valid stream redirection operator in Bash.
Therefore, the three valid stream redirection operators in Bash are <, >, and >>.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
rona962
2 months, 3 weeks ago