QuestionQ77

VerifiedGNU and Unix Commands

Which command displays the output of the foo command on the screen while also writing it to a file named /tmp/foodata?

Explanation

tee copies data received on standard input to both standard output and the named file, so foo | tee /tmp/foodata displays foo output and saves it in /tmp/foodata.

Community Discussion

No comments yet. Be the first to start the discussion!