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 used to type command?

546


What do chown command do?

536


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

628


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

689


What is the difference between cat and more command?

627






What is the difference between awk and grep?

561


What is updatedb?

590


What are the differences among a system call, a library function, and a unix command?

570


Why is shebang used?

600


What is ‘ps’ command for?

620


How do I use nslookup?

577


What is pipe command in unix?

677


Differentiate cmp command from diff command.

591


Is it inbetween or in between?

589


What are reported commands?

570