nerdexam
LPI

101-500 · Question #14

101-500 Question #14: Real Exam Question with Answer & Explanation

The correct answer is D. myapp | tee file1.log. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

GNU and Unix Commands

Question

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

Options

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

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#I/O Redirection#Pipes#tee command#stdout

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice