There’s nothing specially destructive about dd. It’s just a program that opens a file, and if you tell it to open a device file and it’s got permission to write to it, it’ll write to it.
You can just as easily overwrite a disk’s contents with anything else that will open a file and write to it.
# cp /dev/urandom /dev/sda
will wipe your drive with random data in the same way that
There’s nothing specially destructive about
dd. It’s just a program that opens a file, and if you tell it to open a device file and it’s got permission to write to it, it’ll write to it.You can just as easily overwrite a disk’s contents with anything else that will open a file and write to it.
will wipe your drive with random data in the same way that
will.
You’re technically right, but the way most people use dd ensures its like handling a loaded gun. How often do you cp /dev/sdwhy?