A

Admin • 828.03K Points
Coach

Q. Which option of the “rmdir” command deletes all directories rep1, rep2, rep3 if the path is rep1/rep2/rep3?

  • (A) –b
  • (B) –o
  • (C) –p
  • (D) –t
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Linux
  • Hashtags:

Explanation by: Admin
The “rmdir -p” command in Unix allows you to delete parent directories if they are also empty. For example:

$ rmdir -p rep1/rep2/rep3

this command will first delete rep3/, then rep2/ and finally rep1/ thus deleting the whole directory tree specified in the command’s argument.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.