How to Create a Gigabyte Testfile with dd?
December 28th, 2007And 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.
Did you Like this Post? Try these ones! :)
How to install nmap on Ubuntu Linux on September 11th, 2008
How to find other local area network (LAN) computers in Ubuntu Linux? on September 19th, 2007
How to set up NFS and How to Share Files in a local network with Ubuntu Linux? on August 31st, 2007
How can I restart the Network Interfaces (eth0) on a Remote Linux Box? on August 11th, 2007
Ubuntu HTML in front of Flash Video is hidden, why? on September 7th, 2008


December 31st, 2007 at 06:57
That’s not a gigabyte you dumbfuck.
Maybe you should read wikipedia?
December 31st, 2007 at 07:22
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
November 18th, 2008 at 09:02
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