1.

To delete all files in a directory we use ______________(a) rmdir *(b) mv *(c) rm *(d) del *This question was addressed to me in class test.The query is from Deleting and Renaming files: rm and mv Command in chapter Handling Ordinary Files of Unix

Answer»

Correct choice is (c) rm *

To explain: To delete all files in a DIRECTORY, use (*) with rm COMMAND. It acts as a meta-character and delete all files WITHOUT displaying any message on the TERMINAL. So use this command cautiously.



Discussion

No Comment Found

Related InterviewSolutions