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

Give the command to display space usage on the UNIX file system.

6 Answers  


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

0 Answers   BMC, CNS, DELL, Infosys,


Explain command to show the space allocation of files?

0 Answers  


how to find largest file?

14 Answers   HCL, Microsoft, Thomson Reuters,


what is the use of "fg" command ?

5 Answers   PSU, Sail,






Explain command to display different lines that are found when compare two files?

0 Answers  


What is pid?

4 Answers  


Assume that a file’s permissions give you read and write access. What operations can you perform on the file if it is in a directory which has “r”(read) only process? What operations can you perform on the file if it is in a directory which has “x”(execute) only access?

1 Answers  


boot process?

2 Answers   Atos Origin, Wipro,


How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?

4 Answers   HCL, Wipro,


Write a command to kill the last background job?

0 Answers  


the difference between a soft link and a hard link?

6 Answers  


Categories