Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 do I run a bash script?

1182


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

1068


What is unix command line?

1252


how to sort the content of the file based on numeric values

1781


What is rmdir command?

1103


What does pipe () return?

1073


What does 'mkdir' command do in UNIX?

1310


What is $0 bash?

1203


Explain command to show the space allocation of files?

1122


What is the nmap command?

1179


What are awk commands?

1158


What is .sh file?

1182


Write a command that will display files in the current directory, in a colored, long format.

1219


What are the unix commands?

1095


What do chown command do?

1185