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 is the comma to show the space allocation of files?

556


Differentiate cat command from more command.

572


What is awk good for?

578


What does #!/ Bin sh do?

582


What is unix command line?

602






What happens when we execute a unix command?

593


What does sed command do in unix?

556


What is the difference between cat and more command?

620


How do I search for a file in unix command?

541


Explain mount and unmount command.

609


What do know about tee command and its usage?

582


What is .sh file?

614


What is the search command in unix?

595


What is the unix command to confirm a remote host is alive or not?

575


What is the significance of the 'tee' command?

594