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

Posted by Mi on Mar 07, 2026 at 03:55 PM

When given the following command line.

echo "foo bar" | tee bar | cat

Which of the following output is created?

Suggested Answer: B

Get Premium LFCS Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
26 comments · newest first
CL
Clorinda 2 months ago
No, tee just duplicates the input. B is definitely correct!
AN
Annalee 2 months ago
But what about C) tee bar? It seems like a possible output too.
CU
Curt 2 months ago
Yeah, I agree! The echo command sends "foo bar" to tee.
QU
Queenie 3 months ago
I think the output is B) foo bar.
RE
Rebeca 3 months ago
Nah, definitely B) foo bar. The command pipes it correctly.
GE
Georgeanna 3 months ago
But what about A) cat? It seems like a trick option.
MI
Ming 3 months ago
I agree, B) makes sense. It shows the full output.
LA
Lai 3 months ago
I think the output is B) foo bar.
TA
Talia 3 months ago
Nah, definitely B) foo bar. The command pipes it correctly.
KE
Keena 4 months ago
But what about A) cat? It seems like a trick option.
MA
Martin 4 months ago
I agree, B) makes sense. It shows the full output.
LI
Lindy 4 months ago
I think the output is B) foo bar.
NI
Nina 4 months ago
It's "foo bar", no doubt about it!
LO
Long 4 months ago
I thought it would just be "bar".
LA
Lanie 6 months ago
Wait, are you guys sure? What about the "tee" command?
ER
Erasmo 6 months ago
I agree, it's "foo bar" for sure!
CL
Clarence 6 months ago
The output is definitely "foo bar".
JI
Jimmie 6 months ago
It's "foo bar", no doubt about it!
BO
Bok 7 months ago
I thought it would just be "bar".
KR
Kris 7 months ago
Wait, are you guys sure? What about the "tee" command?
CE
Cecil 7 months ago
I agree, it's "foo bar" for sure!
EL
Elliot 7 months ago
The output is definitely "foo bar".
TO
Tori 7 months 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.
GL
Glenn 7 months 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.
BR
Brigette 8 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?
KA
Katina 8 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.
0/2000 characters

Save Cancel