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 is sed awk grep?
Describe the zip/unzip command using gzip.
What are the differences among a system call, a library function, and a unix command?
What is awk command used for?
What are filter commands in unix?
What is the difference between awk and grep?
What is in grep command?
Which command is used to find whether the system is 32 bit or 64 bit?
How do I run a whois command?
How do you grep recursively?
Which command is used to create a directory?
How many unix commands are there?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
How can you see the command line history?
Explain the steps that a shell follows while processing a command.