Multiple choice technology operating systems

Command to remove directory which is having few files inside.

  1. rmdir

  2. rm

  3. rm -r

  4. None

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

The 'rm -r' command recursively removes a directory and all its contents, including files and subdirectories. 'rmdir' only works on empty directories. 'rm' alone doesn't work on directories. Therefore, option C is correct for removing a non-empty directory.