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
How do you grep a case insensitive?
Why is it called grep?
What is the search command in unix?
What does sed command do in unix?
What is unix command line?
Who wrote grep?
How can we use grep command in unix?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What difference between cmp and diff commands?
Is command prompt unix?
What does touch command do in unix?
What is the first character of the output in ls l command?
What does pipe () return?
What is the unix command to confirm a remote host is alive or not?
Differentiate cat command from more command.