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)- A12% (5)
- B2% (1)
- C2% (1)
- D79% (33)
- E5% (2)
Community Discussion
No community discussion yet for this question.