When given the following command line.
echo "foo bar" | tee bar | cat
Which of the following output is created?
A.
cat
B.
foo bar
C.
tee bar
D.
bar
E.
foo
题解
「echo」指令可以输出从参数传入的文字至输出串流中,「tee」指令可以同时将输入的文字输出至输出串流和文件串流中,「cat」指令可以输出从输入串流输入的文字至输出串流。
所以这题指令运行后,会将「foo bar」输出到标准输出串流和「bar」文件中。
