Vidyalelo
Computer Science · Q18

UNIX

Engineering and GATE · Computer Science · question 18

Q18

The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is

A.
tee
Answer
B.
tr
C.
sort
D.
grep
E.
None of the above

Answer: Option A

Solution

Answer: Option A
Solution:
In Unix, the tee command reads the standard input and writes it to both the standard output and one or more files, effectively making a copy of the input. This can be useful when you want to see the output of a command on the screen while also saving it to a file.
So, tee is the correct command to transcribe the standard input to the standard output and also make a copy of the same in a file.