Which command handles a character stream by duplicating its input?

Which command handles a character stream by duplicating its input?
A. tree
B. tee
C. tty
D. ls
 
Answer: b
Explanation: tee is an external command which handles a stream of characters by duplicating its input. It saves one copy in a file and writes the other to standard output. tee command can be placed anywhere in a pipeline.
Code:
$ who  |  tee  user.txt
The above command displays the output of who command on the terminal and also saves this output in a file named user.txt.
 

Tìm kiếm

Back
Top