What is the difference between pipe (|) and tee command in unix

Answer Posted / nirav

PIPE- "|" :- **. It is an IPC(Inter Process Communication).
*. It means that the out put of the first command is the
Input of the second command.
**. Like wise 3rd, 4th, 5th.....nth.
tee :- **. tee generates two outputs always.
**. It's a filter ! by using tee we can send the output to
a new file at the same moment we can see the output on the
screen.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ctrl d?

814


Is it inbetween or in between?

801


What is the use of the command 'ls -x chapter[1-5]' ?

898


What do chgrp command do?

837


Explain ‘system calls’ with respect to unix commands?

794


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1033


What does grep v do?

768


Is grep faster than awk?

746


What does the md command do?

779


What does pipe () return?

782


What is grep in bash?

776


Explain command to view process running?

820


Are you in or at the office?

842


What are the general commands in using unix os for a beginner?

818


What does grep v grep do?

771