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

Answer Posted / rajib mallick

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.

..for any query you can e-mail me on "rajib.ku@gmail.com".

Is This Answer Correct ?    46 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are bash commands?

604


Explain mount and unmount command.

627


What is the first character of the output in ls l command?

639


How do you repeat a command in terminal?

602


Is ‘du’ a command? If so, what is its use?

639






What is grep in bash?

591


What is the use of tee command?

580


What does the command '$ls | wc –l > file1' do?

688


What is the general format of unix command syntax?

698


What are awk commands?

590


How do I open a port?

600


What is unix command?

594


how to sort the content of the file based on numeric values

1262


what is the advaantage of each user having its own copy of the shell?

2045


What is the search command in unix?

611