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 in unix

Answer Posted / worsame abid

A Pipe is two or more commands seperated by pipe chat "|".
That tells the shell to arrange for the output of the
proceeding command to be passed as input to the following
example.

$ls |wc -l

this will mean that output of ls command will serve as
input for wc command as result we will get total number of
files in current directory.



Tee is normally used to split the output of a program so
that it can be seen on the display and also be saved in a
file ,The tee command reads standard input, then writes its
content to standard output and simultaneously copies it
into the specified file(s) or variables.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to kill the last background job?

1292


Explain ‘system calls’ with respect to unix commands?

1041


How can you see the command line history?

1078


Why is grep called grep?

1236


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1339


What does the md command do?

1075


How can we use grep command in unix?

1143


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

1154


What is .sh file?

1111


What is the unix command to confirm a remote host is alive or not?

1142


Name the various commands that are used for the user information in unix.

1023


How to display no of records in oracle using unix command?

1104


Name the general commands in using unix os for a beginner?

1094


What are bash commands?

1096


What is unix command line?

1181