nerdexam
CompTIA

XK0-006 · Question #17

A Linux administrator needs to securely erase the contents of a hard disk. Which of the following commands is the best for this task?

The correct answer is B. sudo shred /dev/sda1. The shred command securely erases data by overwriting the specified device or file multiple times, making recovery nearly impossible. This is the best option for securely erasing a hard disk.

Security

Question

A Linux administrator needs to securely erase the contents of a hard disk. Which of the following commands is the best for this task?

Options

  • Asudo rm -rf /dev/sda1
  • Bsudo shred /dev/sda1
  • Csudo parted rm /dev/sda1
  • Dsudo dd if=/dev/null of=/dev/sda1

How the community answered

(47 responses)
  • A
    2% (1)
  • B
    91% (43)
  • C
    2% (1)
  • D
    4% (2)

Explanation

The shred command securely erases data by overwriting the specified device or file multiple times, making recovery nearly impossible. This is the best option for securely erasing a hard disk.

Topics

#shred#secure erase#data sanitization#disk wiping

Community Discussion

No community discussion yet for this question.

Full XK0-006 Practice