what is the difference between pipe(|) and tee command..

Answer Posted / manoj gadtia

pipe direct output of one command to the input of another
command

ls -l | wc


tee command reads standard input, then writes the output
to standard output and simultaneously copies it into the
specified file or files

ls -l | wc -l | tee out.txt

It shows the output and also write the result into out.txt
file

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of cut command in unix?

931


Explain how to use grep command to list find the records of a file containing 10 different strings?

791


What is the use of finger command?

809


What do chown command do?

771


Explain ‘library functions’ with respect to unix commands?

798






How many unix commands are there?

805


What is awk good for?

787


What is {} in find command?

766


Explain command to show the space allocation of files?

823


What is awk command used for?

774


Write a command to kill the last background job?

779


How do you grep recursively?

760


What is merge command in unix?

1130


What does this command do,"$more readme.txt“?

850


What is the general format of unix command syntax?

1148