dd
DisksAdvanced In real LinuxCopy and convert data block by block (e.g. boot USBs)
Name: dd: often read as data duplicator or disk dump; the name actually comes from IBM JCL's DD (data definition) statement
This command needs a real Linux system; you can practise it in real Linux mode.
Description
dd copies data block by block from input to output, optionally converting it. It reads and writes devices directly, so it is used to write boot USB drives, image partitions, create files of a given size or wipe disks.
It never asks for confirmation; a wrong of= overwrites data instantly, hence the nickname "disk destroyer". Check device names with lsblk first.
Syntax
dd if=INPUT of=OUTPUT [OPTION]...Common options
| if= / of= | Input file / output file |
| bs= | Block size, e.g. 4M |
| count= | Number of blocks |
| skip= / seek= | Blocks to skip in the input / the output (start in the middle) |
| status=progress | Show progress |
| conv=fsync | Flush the data to the device before finishing (for USB sticks) |