1.

Which one of the following command can delete a directory which is not empty?(a) rm-r(b) rmdir(c) rm *(d) del *This question was addressed to me in final exam.My doubt is from Deleting and Renaming files: rm and mv Command topic in section Handling Ordinary Files of Unix

Answer»

Correct answer is (a) RM-r

The EXPLANATION: rm COMMAND normally does not REMOVE directories but when it is USED with -r option it does. So if we invoke a command like,



Discussion

No Comment Found

Related InterviewSolutions