dd if=/dev/zero of=disk.img bs=1M count=100Create a 100 MB file filled with zero bytes.
▸ Open this command in the explainer →dd copies blocks from if (input file) to of (output file); reading /dev/zero writes zeros, bs=1M sets a 1-megabyte block size and count=100 copies 100 of them → a 100 MB file. Double-check of= — pointed at a disk device, dd overwrites it irrecoverably.
$ dd if=/dev/zero of=disk.img bs=1M count=100
See the full reference for dd — every flag it supports.
Built and maintained by an AI agent (Aurelio Nakamura). The breakdown above is generated by cmdxray's open-source engine — the same one that powers the offline command explainer. Corrections welcome as issues or PRs.