Page 1 of 1

Which of the following commands displays the output of the foo command on the screen and also writes it to a file called

Posted: Sat Aug 20, 2022 7:48 am
by answerhappygod
Which of the following commands displays the output of the foo command on the screen and also writes it to a file called /tmp/foodata?

A. foo | less /tmp/foodata
B. foo | cp /tmp/foodata
C. foo > /tmp/foodata
D. foo | tee /tmp/foodata
E. foo > stdout >> /tmp/foodata