exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 37 discussion

Actual exam question from LPI's 101-500
Question #: 37
Topic #: 1
[All 101-500 Questions]

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

  • A. <
  • B. #>
  • C. %>
  • D. >>>
  • E. 2>&1
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

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
aMiPL
Highly Voted 3 years, 3 months ago
The answer is correct: https://tldp.org/LDP/abs/html/io-redirection.html
upvoted 8 times
...
stefano1856
Highly Voted 2 years, 8 months ago
2>&1 is used to redirect standard error output (2) to standard output (1), for example: find / -name *.log > result.txt 2>&1: register errors in results.txt and don't display nothing find / -name *.log > result.txt: display errors
upvoted 6 times
...
Ninymo
Most Recent 3 months, 3 weeks ago
Answer: AE
upvoted 1 times
...
JilN
3 years, 1 month ago
Is it supposed to be < or > Am used to redirecting my output via >. I have not encountered < before. Someone please educate me.
upvoted 3 times
CuriousLinuxCat
2 years, 11 months ago
You use < when you want to input some information to a command. Basically, it's the other way around of >.
upvoted 3 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