QuestionQ59

VerifiedThe Power of the Command Line

Executing rm Downloads produces this error:

rm: cannot remove 'Downloads/': Is a directory

Which of the following commands can instead be used to remove Downloads, assuming that Downloads is empty?

Choose two
Explanation

rmdir removes empty directories. The -r option makes rm remove directories recursively along with their contents, so it can also remove an empty directory.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!