Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
A) cat < myapp | cat > file1.log
B) myapp 0>&1 | cat > file1.log
C) myapp | cat > file1.log
D) myapp | tee file1.log
E) tee myapp file1.log
Correct Answer:
Verified
Q16: Which of the following commands brings a
Q17: In Bash, inserting 1>&2 after a command
Q18: During a system boot cycle, what program
Q19: Which of the following commands is used
Q20: What of the following statements are true
Q22: Which of the following commands displays the
Q23: What is the maximum niceness value that
Q24: Which of the following commands is used
Q25: Immediately after deleting 3 lines of text
Q26: Which of the following commands kills the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents