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

Answer Posted / jaydeep das

pipe is used to direct the output of a set of commands to
another set of commands meaning output of one will be fed
as input to the other
tee is used to display the output on the screen

Is This Answer Correct ?    51 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you enlist some commonly used network commands?

610


What are bash commands?

606


Who invented grep?

664


What is the function of grep command in unix?

608


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

644






What is ctrl d?

603


What is in grep command?

654


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

973


What is the general format of unix command syntax?

706


Using unix command how to display no of records in oracle?

620


Is it inbetween or in between?

592


Which unix command lists files/folders in alphabetical order?

624


What is grep in bash?

595


What is ‘ps’ command for?

625


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:

1774