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

How does the system know where one command ends and another begins?

1582


Write a command to display a file’s contents in various formats?

629


Explain ‘library functions’ with respect to unix commands?

605


How can you see the command line history?

587


What is merge command in unix?

946






How do you grep a case insensitive?

545


What is {} in find command?

584


Name the unix command to find how many days the server has been up.

608


What do know about tee command?

607


What's a command word?

591


How do I use grep to search for a file?

584


What is grep in bash?

590


What is the difference between cat and more command?

627


What is the comma to show the space allocation of files?

562


How to find $ai_serual resolved path by using unix

1029