Command line · Question 4 of 12

How do you delete a directory including its content?

1 answer is correct. Easy

Show answer

Answer

  • B rm -r directory

Explanation

rm -r deletes recursively. Because there is no recycle bin, the path should be checked beforehand. rmdir only deletes empty directories.

Certifications & exams

Which exam comes next?

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

See all certifications