1.

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) wcThis question was posed to me during an online interview.My question comes from Redirection and Pipes topic in section The Shell of Unix

Answer»

Correct option is (c) tee

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,



Discussion

No Comment Found

Related InterviewSolutions