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's a command word?

589


What is the functionality of a top command?

623


What is the function of grep command in unix?

588


Is it inbetween or in between?

580


How does shebang work?

591






What is the general format of unix command syntax?

693


How do you repeat a command in terminal?

591


What does touch command do in unix?

729


What is awk command used for?

600


What does grep v do?

559


What is command statement?

541


Which command is used to find whether the system is 32 bit or 64 bit?

631


What does sed command do in unix?

564


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1758


Which command can you use to find the currently running process in unix server?

586