LPI
101-500 · 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. 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
How the community answered
(43 responses)- A2% (1)
- C2% (1)
- D91% (39)
- E5% (2)
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.