In order to generate a large file of a set size you can use:
dd if=/dev/zero of=test100M.bin bs=100000000 count=1
where of is the output file and bs is its size in bytes.
In order to generate a large file of a set size you can use:
dd if=/dev/zero of=test100M.bin bs=100000000 count=1
where of is the output file and bs is its size in bytes.
May 16, 2008 at 6:53 pm |
Another neat trick using dd is to create a large file with a huge hole:
dd if=/dev/zero of=hugefile bs=512 count=1 oseek=204800Some systems even have a special truncate utility:
truncate -s 100m hugefile