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


Please Help Members By Posting Answers For Below Questions

What does the command ' $who | sort –logfile > newfile' do?

757


What is the command to view process running?

566


Write a command that will display files in the current directory, in a colored, long format.

669


What are file commands?

644


Write a command to kill the last background job?

608






What happens when we execute a unix command?

589


What do chown command do?

523


why metadb requires a seperate slice to create Solaris volume manager

2544


What is the behavioural difference between cmp and diff commands?

664


Describe the usage and functionality of the command rm –r * in unix?

813


How do I use nslookup?

566


Name the unix command to find how many days the server has been up.

591


Who command in unix?

562


What is the use of egrep command in unix?

617


How do I find previous commands in unix?

588