Problem Statement
Which option with rm is required to delete directories recursively?
Explanation
The -r (recursive) flag allows rm to delete directories and their contents.
To bypass confirmation prompts, -rf is commonly used but should be applied carefully.
Code Solution
SolutionRead Only
rm -r myfolder
Practice Sets
This question appears in the following practice sets: