Copied to clipboard

dd

This is a Linux and Unix command used to copy specified files or an entire directory to another directory.

Examples

  • Write an ISO image file named input.iso to the device /dev/sdb:

    dd if=input.iso of=/dev/sdb
    
  • Write the first 10 sectors of the device /dev/sda to the file mbr.bin:

    dd if=/dev/sda of=mbr.bin bs=512 count=10
    
  • Write the second partition of a disk image file named disk.img to the first sector of the device /dev/sdc3:

    dd if=disk.img of=/dev/sdc3 bs=512 skip=2048 seek=1 count=2048