ExamGecko
Question list
Search
Search

Question 239 - 101-500 discussion

Report
Export

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
Answers
A.
foo | less /tmp/foodata
B.
foo | cp /tmp/foodata
Answers
B.
foo | cp /tmp/foodata
C.
foo > /tmp/foodata
Answers
C.
foo > /tmp/foodata
D.
foo | tee /tmp/foodata
Answers
D.
foo | tee /tmp/foodata
E.
foo > stdout >> /tmp/foodata
Answers
E.
foo > stdout >> /tmp/foodata
Suggested answer: D
asked 18/09/2024
Zied Nassr
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first