1.

Which option performs recursive deletion?(a) -r(b) -R(c) *(d) -r and -RThe question was asked during an interview.Origin of the question is Deleting and Renaming files: rm and mv Command topic in chapter Handling Ordinary Files of Unix

Answer»

Correct answer is (d) -R and -R

Easy explanation: With -r or -R option, rm performs a recursive walk in the file HIERARCHY and searches for every SUBDIRECTORIES and file within this directory, At each stage, it keeps on deleting everything it FINDS.



Discussion

No Comment Found

Related InterviewSolutions