1.

The size of /dev/null is always zero.(a) True(b) FalseI have been asked this question during an interview.My question comes from Redirection and Pipes in section The Shell of Unix

Answer»

Right option is (a) True

To explain: UNIX has a special file that simply accepts any stream WITHOUT GROWING in size. This file is /dev/null. This file is used for redirecting error messages away from the terminal so that they don’t appear on the SCREEN. This file is pseudo-device because like other device FILES, it’s not ASSOCIATED with any physical device.



Discussion

No Comment Found

Related InterviewSolutions