Which command saves one copy of character stream in a file and store the other to standard output?

Which command saves one copy of character stream in a file and store the other to standard output?
A. who
B. ls
C. tee
D. wc
 
Answer: c
Explanation: tee command handles a character stream by duplicating its input. It saves one copy in a file and writes the other to standard output. For example,
Code:
$ who  | tee  user.txt
Above command will the save the output of who command in a file named user.txt as well as it will also display the output of who command on the terminal.
 

Tìm kiếm

Back
Top