Forrest logo
back to the shred tool

shred:ai:cbe16

how do I completely wipe all local drives
$ shred -z -n 1 -v /dev/sdX
try on your machine

This command uses the 'shred' utility to overwrite the contents of the specified drive (/dev/sdX) with zeros (-z), performing a single-pass overwrite (-n 1), and providing verbose output (-v). Make sure to replace 'sdX' with the appropriate drive identifier.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • how do I completely wipe all local drives?
  • shred disk?
back to the shred tool