1.

Which command handles a character stream by duplicating its input?(a) tree(b) tee(c) tty(d) lsThe question was asked in an interview for job.This interesting question is from General Purpose Commands topic in section The Unix Architecture & General Purpose Utilities of Unix

Answer»

The correct answer is (b) tee

Easy 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.



Discussion

No Comment Found

Related InterviewSolutions