File management · Question 4 of 12

What does rmdir do with a directory that still contains files?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • C It reports an error and leaves the directory in place

Explanation

rmdir only removes empty directories. For directories with contents you use rm -r.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications