Multiple choice technology operating systems

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

  1. remove -all

  2. rm- a

  3. rm -r

  4. rm

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

The 'rm' command with the '-r' (recursive) flag is used to remove a directory and all of its contents, including files and subdirectories. The 'rmdir' command only works on empty directories.