Multiple choice technology operating systems

To remove a NON-empty directory, this command is used?

  1. remove -all

  2. rm

  3. rm -r

  4. rm -a

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The rm -r command recursively removes directories and their contents, which is necessary for non-empty directories. Option A (remove -all) is not a valid command. Option B (rm) alone cannot remove directories. Option D (rm -a) is not a valid rm option.