Benjamin Flesch = definitely rocks.”> How to Create a Gigabyte Testfile with dd on Ubuntu Linux? dd if=/dev/zero or /dev/urandom of=your.file bs=1000 count=0 seek=1000 ~ mybeNi websecurity, web security and hack stuff.

web securitymybeNi websecurity

How to Create a Gigabyte Testfile with dd?

December 28th, 2007

And again, the whole task is as simple as typing that into your terminal:

dd if=/dev/zero of=test.file bs=1000 count=0 seek=$[1000*1000*1]

which will create a one (1) gigabyte big test file named “test.file” in the current Directory.




3 Responses to “How to Create a Gigabyte Testfile with dd?”:

  1. f00 Says:

    That’s not a gigabyte you dumbfuck.
    Maybe you should read wikipedia?


  2. beNi Says:

    Okay little boy.
    1 Gibibyte = 1024 Mebibyte
    and
    1 Gigabyte = 1000 Megabytes
    (unless you’re talking about RAM.)

    The common term Gigabyte is often erroneously referred to as 1024 MegaByte of data. But, by definition
    Kilo = 10^3
    Mega = 10^6
    Giga = 10^9

    Some articles which might be interesting for you, buddy:
    http://en.wikipedia.org/wiki/Gibibyte
    http://en.wikipedia.org/wiki/Gigabyte

    Regards, Benjamin


  3. A.N.Onymous Says:

    I much prefer:

    dd if=/dev/zero of=filename bs=1 count=1GB

    or

    dd if=/dev/zero of=filename bs=1kB count=1MB

    If you want binary quantities then use:

    dd if=/dev/zero of=filename bs=1 count=1G

    or

    dd if=/dev/zero of=filename bs=1K count=1M


Leave a Reply


Google Traffic (7 days)

250
200
150
100
50
196
190
190
199
219
173
120
38.107.191.100