When the command line echo "foo bar" | tee bar | cat is executed, the following happens:
echo "foo bar" prints "foo bar" to standard output (stdout).
The | (pipe) symbol takes the output of the previous command and sends it as input to the next command.
tee bar takes the input it receives from the pipe and writes it to standard output (stdout) as well as to a file named "bar".
The second | (pipe) symbol takes the output of the previous command and sends it as input to the next command.
cat takes the input it receives from the pipe and writes it to standard output (stdout).
Therefore, the output that is created is:
foo bar
The output is printed to both the terminal (stdout) and the file "bar", but since the cat command only reads from standard input (stdin), it will only output "foo bar" to the terminal.
Incorrect. Answer is D. output created bar.
[student@centos ~]$ cat bar
foo bar
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
KMAV
3 months agorhylos
1 year, 12 months agorhylos
1 year, 12 months ago