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
What happens when we execute a unix command?
Name the unix command to find how many days the server has been up.
What is the pipe command?
How to display no of records in oracle using unix command?
What are the dos commands?
What is awk used for?
What is the use of tee command?
How do I clear my terminal history?
Are you in or at the office?
Is grep faster than awk?
What is the nmap command?
What does the md command do?
How do you grep recursively?
What is the first character of the output in ls l command?
Why is it called a shebang?