Multiple choice technology operating systems

command to delete all files in the current directory and its sub directories?

  1. rm -r *

  2. rmdir *

  3. Both the above

  4. None of there

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

The rm -r * command recursively deletes all files and directories inside the current directory. In contrast, the rmdir command can only remove empty directories and cannot delete files, making it insufficient for this task. Therefore, other choices are incorrect.