1.

Which of the following symbol(s) can be used to redirect the output to a file or another program?(a) |(b) >(c) >>(d) |, > and >>This question was posed to me by my college director while I was bunking the class.This is a very interesting question from Redirection and Pipes in section The Shell of Unix

Answer» CORRECT option is (d) |, > and >>

Explanation: All commands DISPLAYING output on the TERMINAL actually write to the standard output file as a stream of CHARACTERS and not directly to the terminal as such. The symbol > will replace the default destination (terminal) with any file by using the > operator, followed by the filename while the symbol >> is used to append to a file. | is used to give input to another program.


Discussion

No Comment Found

Related InterviewSolutions