CompTIA Linux+ (XK0-006) — Question 6

Which of the following utilities can securely delete a Linux directory from a filesystem and ensure it cannot be recovered?

Answer options

Correct answer: B

Explanation

The correct answer is B, shred, as it overwrites the data in a directory multiple times to prevent recovery. The other options like dd and rm do not guarantee that the data cannot be recovered, and unlink is primarily used for removing file links, not directories.