dd if=/dev/zero of=file bs=1M count=100

Category: Administration

dd if=/dev/zero of=file bs=1M count=100

Create a 100MB file filled with zeros

Creates a file filled with zero bytes of a specific size. count=100 with bs=1M makes a 100 MB file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.