LPI
101-400 · Question #14
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
The correct answer is D. myapp | tee file1.log. 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.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
How the community answered
(45 responses)- A4% (2)
- B2% (1)
- C13% (6)
- D73% (33)
- E7% (3)
Community Discussion
No community discussion yet for this question.