Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 1 (Q.No. 18)
18.
The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is
tee
tr
sort
grep
None of the above
Answer: Option
Explanation:
The tee command reads standard input, then writes its content to standard output and simultaneously copies it into the specified file(s) or variables.
Discussion:
1 comments Page 1 of 1.

Arnab said:   1 decade ago
Do not confuse it with the redirection (>) operator.

The only difference is that, if you use redirection then the contents will be written to the specified file and there will be no output whereas using tee it will show you the output as well as write into the specified file simultaneously.

Post your comments here:

Your comments will be displayed after verification.