dd - disk destroyer

Known as “Disk Destroyer” since its interface allows you to unintentionally ruin entire hard drives. While infamous, dd is also very convenient.

End-of-day, dd simply writes the input file into the output file.

Examples

Create a bootable flashdrive from a .iso

sudo dd if=./debian-11.6.0-amd64-netinst.iso of=/dev/sdc status=progress

Create a file with random data

sudo dd if=/dev/random of=./random.dat bs=2048 count=1

See also