1.

Which option is used with touch command which forces the command not to create file, if it does not exists.(a) -h(b) -c(c) -t(d) -fI got this question by my college professor while I was bunking the class.The above asked question is from Displaying and Creating Files: cat Command in section Handling Ordinary Files of Unix

Answer»

Correct OPTION is (b) -c

Explanation: In case if there is a strict REQUIREMENT that touch command should not create a new file, we can use the -c option with it. Else if the file already exists then it will do nothing.



Discussion

No Comment Found

Related InterviewSolutions