1.

Which command is used to create empty files?(a) cp(b) cat(c) touch(d) createThe question was posed to me in unit test.My question is taken from Displaying and Creating Files: cat Command in section Handling Ordinary Files of Unix

Answer»

The correct choice is (d) create

To explain I would SAY: Touch command changes timestamps. It is ALSO an easy way to create empty files.

The only argument required to be specified with touch command is the filename of the FILE to be CREATED.



Discussion

No Comment Found

Related InterviewSolutions