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

Martin martin at ml1.co.uk
Mon Mar 27 09:42:24 BST 2006

Richard Hayes wrote:
> Hi guys,
> This is my first post. Hello everyone.

Hello and welcome!

> Does anyone know where I can get 1GB (or any amount for that matter) of 
> \0 (null) characters?

I'm sure there's lots on here, and many ways.

I'll start the fun with just one:

dd if=/dev/zero count=1G

all at the command prompt and pipe those zeros to wherever you want. You 
can output to a file with:

dd if=/dev/zero of=yourFileName count=1G

Look up with:
man dd

Now, why?

Good luck,

Martin Lomas
martin at ml1.co.uk

More information about the Nottingham mailing list