nerdexam
CompTIA

XK0-001 · Question #159

A user wants the script name1 to process the contents of the file "name2", then redirect the output to the program name3. Which of the following shell commands will do this?

The correct answer is B. name1 < name2 | name3. See the full explanation below for the reasoning.

Question

A user wants the script name1 to process the contents of the file "name2", then redirect the output to the program name3. Which of the following shell commands will do this?

Options

  • Aname1 | name2 > name3
  • Bname1 < name2 | name3
  • Cname1 > name2 | name3
  • Dname1 | name2 < name3

How the community answered

(48 responses)
  • A
    10% (5)
  • B
    81% (39)
  • C
    2% (1)
  • D
    6% (3)

Community Discussion

No community discussion yet for this question.

Full XK0-001 Practice