what is the difference between pipe(|) and tee command..
Answer Posted / manoj gadtia
pipe direct output of one command to the input of another
command
ls -l | wc
tee command reads standard input, then writes the output
to standard output and simultaneously copies it into the
specified file or files
ls -l | wc -l | tee out.txt
It shows the output and also write the result into out.txt
file
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
How do I run a bash script?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What is unix command line?
how to sort the content of the file based on numeric values
What is rmdir command?
What does pipe () return?
What does 'mkdir' command do in UNIX?
What is $0 bash?
Explain command to show the space allocation of files?
What is the nmap command?
What are awk commands?
What is .sh file?
Write a command that will display files in the current directory, in a colored, long format.
What are the unix commands?
What do chown command do?