Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation LFCS Exam - Topic 5 Question 110 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 110
Topic #: 5
[All LFCS Questions]

When given the following command line.

echo "foo bar" | tee bar | cat

Which of the following output is created?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Clarence
4 days ago
The output is definitely "foo bar".
upvoted 0 times
...
Jimmie
9 days ago
It's "foo bar", no doubt about it!
upvoted 0 times
...
Bok
14 days ago
I thought it would just be "bar".
upvoted 0 times
...
Kris
20 days ago
Wait, are you guys sure? What about the "tee" command?
upvoted 0 times
...
Cecil
25 days ago
I agree, it's "foo bar" for sure!
upvoted 0 times
...
Elliot
30 days ago
The output is definitely "foo bar".
upvoted 0 times
...
Tori
1 month ago
I feel like the answer is B) foo bar, but I might be mixing it up with another command. I need to double-check how piping works here.
upvoted 0 times
...
Glenn
1 month ago
I'm a bit confused about the options. Does tee actually output to both the terminal and the file? I can't recall if it affects the final output.
upvoted 0 times
...
Brigette
2 months ago
I remember practicing a similar question where tee was involved, and it seemed to duplicate the output. Maybe it outputs "foo bar" as well?
upvoted 0 times
...
Katina
2 months ago
I think the output should be "foo bar" since that's what gets echoed, but I'm not entirely sure how tee works in this context.
upvoted 0 times
...

Save Cancel