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?

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

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “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?

  1. I am having a trouble to find the foo command, it is not available under debian distro.
    Can anyone explain?

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.