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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

661


What is the difference between awk and grep?

561


What is {} in find command?

584


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

761


What do chgrp command do?

590






What is unix command?

584


Can you explain a little bit about command substitution?

610


What is grep in bash?

586


What is the significance of the 'tee' command?

596


What do chown command do?

536


What will the following command do?

615


Write a command to kill the last background job?

618


How do I find previous commands in unix?

592


How do I delete files from command prompt?

549


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