100mb blank file

27 09 2010

I recently had the need to do some network testing, and came across a quick one liner to generate a blank 100mb file, thought someone else may find use for it too.

dd if=/dev/zero of=bigfile bs=1024 count=102400

This creates a file full of null characters (ASCII NUL, 0x00)
http://en.wikipedia.org/wiki//dev/null

dd if=/dev/random of=bigfile bs=1024 count=102400

This creates a file full of random characters
http://en.wikipedia.org/wiki//dev/random

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: