General usage:
dd if=<source file/device> of=<destination file/device> bs=<block size> count=<number of blocks>.
Examples:
- Create a disk image:
dd if=<storage device, e.g. /dev/sda1> of=<output file name> - Write a disk image:
dd if=<disk image file name> of=<storage device, e.g. /dev/sda1> - Dump a master boot record:
dd if=/dev/sdX of=MBR.img bs=512 count=1 - Zero a device:
dd if=/dev/zero of=<device>or fill it with random data:dd if=/dev/urandom of=<device>.