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 the significance of the 'tee' command?
Why is awk called awk?
What is the size of time_t?
How do I delete files from command prompt?
What does grep v grep do?
Which command can you use to find the currently running process in unix server?
What is {} in find command?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What are grep patterns?
How do I find previous commands in unix?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
Explain the steps that a shell follows while processing a command.
What is the use of cut command in unix?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
How do I run a bash script?