what is the difference between pipe(|) and tee command..
Answer Posted / mohit chandila
A Pipe would allow you to direct output of one command to
the input of another command ie. directs a stream from one
file to another.
A Tee command does the same job of directing streams
however it directs the stream to two destinations direction
one is the direction where the stream would otherwise end
up if there was no Tee command And the other direction is
the file that is argument to Tee command.
So, A Tee is used in Pipes to direct streams to an outside
file without interrupting the regular propagation of stream
in the pipe.
eg.
Pipe
----------------------------------------
Output of A Input of B
----------------------------------------
Pipe
----------------------------------------
Output of A ======== Input of B
----------------||----------------------
||
||
Input of C
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is the function of grep command in unix?
How can you see the command line history?
What is updatedb?
Which command is used to create a directory?
What is the size of time_t?
What does grep v do?
What is in grep command?
What does touch command do in unix?
What do chgrp command do?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What does the command '$ls | wc –l > file1' do?
How do I use nslookup?
What are awk commands?
What is the comma to display different lines that are found when compare two files?