nerdexam
LPI

117-101 · Question #207

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.1og?

The correct answer is D. myapp| tee file1.1og. See the full explanation below for the reasoning.

Question

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.1og?

Options

  • Acat <myapp | cat > file1.1og
  • Bmyapp 0>&1 | cat > file1.1og
  • Cmyapp | cat > file1.1og
  • Dmyapp| tee file1.1og
  • Etee myapp file1.1og

How the community answered

(42 responses)
  • A
    12% (5)
  • B
    2% (1)
  • C
    2% (1)
  • D
    79% (33)
  • E
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 117-101 Practice