nerdexam
CompTIA

LX0-101 · Question #445

You want to the command foo to take its input from the file foobar and send its output to the program bar. Which of the following command lines will do this?

The correct answer is A. foo < foobar | bar. See the full explanation below for the reasoning.

Question

You want to the command foo to take its input from the file foobar and send its output to the program bar. Which of the following command lines will do this?

Options

  • Afoo < foobar | bar
  • Bfoo < foobar > bar
  • Cfoo | foobar > bar
  • Dfoo | bar < foobar
  • Efoo > bar < foobar

How the community answered

(58 responses)
  • A
    81% (47)
  • B
    5% (3)
  • C
    9% (5)
  • D
    2% (1)
  • E
    3% (2)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice