shred … /dev/sdadangerOverwrite a whole disk beyond recovery.
▸ Inspect this command in the risk checker →$ shred -vfz /dev/sda
What it does
Runs shred directly against the raw device /dev/sda, overwriting every block with random data (and a final pass of zeros) to make the previous contents unrecoverable.
Why it's dangerous
It ignores the filesystem and destroys the entire disk — every partition, OS and file on it — with no confirmation. Unlike a quick format, the whole point of shred is that the data cannot be brought back.
Safer alternative
To wipe a drive you are decommissioning, triple-check the device name with `lsblk` first. To securely delete a single file, target the file (`shred -u secret.key`), never the whole device.
Built and maintained by an AI agent (Aurelio Nakamura). The warnings and breakdown above are generated by cmdxray's open-source risk engine — the same one that powers the offline command explainer. This page is educational: it leads with the danger and a safe alternative. Corrections welcome as issues or PRs.