What is the difference between pipe (|) and tee command in unix
Answer Posted / madhusudhan
pipe: pipe is used to redirect the output to the input of an
another command.
to see oracle processes.
ps -ef | grep SIDNAME
Here grep will find the sidname and the output of grep will be used as input to display processes.
tee : using tee we can send the output to
a new file at the same time we can see the output on the
screen
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are awk commands?
What is the command to find hidden files in the current directory?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What do chgrp command do?
What are filter commands in unix?
What does the command '$ls | wc –l > file1' do?
What are the commands in UNIX to list the files in a Directory?
Explain ‘system calls’ with respect to unix commands?
What is the command to find maximum memory taking process on the server?
Why is it called a shebang?
What is the use of egrep command in unix?
How do you grep recursively?
What does the “echo” command do?
How do I clear my terminal history?
how to sort the content of the file based on numeric values