exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 90 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 90
Topic #: 1
[All LFCS Questions]

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

  • A. <
  • B. <<<
  • C. >
  • D. >>>
  • E. %>
Show Suggested Answer Hide Answer
Suggested Answer: ABC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
rona962
2 months, 3 weeks ago
Selected Answer: ACD
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
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago