[Nottingham] 1GB of \0 (aka null)

Martin Garton martin at stupids.org
Mon Mar 27 09:51:12 BST 2006

On Mon, 2006-03-27 at 09:42 +0100, Martin wrote:

> I'll start the fun with just one:
> dd if=/dev/zero count=1G

I think that will get you a lot more than 1G of zeros because the
default block size is 512.


dd if=/dev/zero count=1 of=test

.. creates a file 512 bytes long.

so for me:

dd if=/dev/zero count=2M

gives the requires 1G.


More information about the Nottingham mailing list