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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / ravikumar reddy .dubba

pipe(|):--pipe is the symbol which is used to combine 2
filters,2 commands or filter and command,

When we combine two operations by using pipe, first
operation o/p acts standard i/p for second operation ,and
second operation gives Standard o/p,

Tee:--tee is the command, we can copy a file data to
multiple files at a time



dubba.ravikumarreddy@gmail.com

Is This Answer Correct ?    2 Yes 3 No

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

Answer / gopi.k

pipe->it is a inter related processer,it is a unidirectional

Is This Answer Correct ?    0 Yes 3 No

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

Answer / guest

seperate arguments

Is This Answer Correct ?    3 Yes 19 No

Post New Answer

More Unix Commands Interview Questions

Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.

1 Answers  


what is the difference between npar and vpar in HP-UX?

1 Answers   CSC,


Write a grep (or grep) command that selects the lines from a file that have exactly three characters.

24 Answers   Mac, Nokia,


In vi editor how do you execute unix commands?

10 Answers  


Name the general commands in using unix os for a beginner?

0 Answers  






How to redirect standard error to a file?

2 Answers  


How to copy multiple files and directories into some other directory?

4 Answers  


What do chmod, chown, chgrp commands do?

0 Answers  


what is mount ,tell me about mount ,how can u use in real time project??

12 Answers   Symphony,


what are the different operating systems available?

3 Answers  


What is nr in awk command?

0 Answers  


Is it inbetween or in between?

0 Answers  


Categories