[Trilug-ontopic] I need to create a 2 gb file using Linux

Ian Kilgore ian at trilug.org
Fri Dec 21 09:33:32 EST 2007

On Fri, Dec 21, 2007 at 09:24:05AM -0500, Greg Brown wrote:
> I want to create a file (can be filled with jibberish, binary, ascii, don't
> care) that is exactly, or close to it, 2 GB.  What is the best way to do
> that?

dd if=/dev/zero of=/gregs/2g/file bs=2M count=512

Play with the bs (blocksize) and count, depending on how much ram you've
Ian Kilgore
print/42;       # n/,"Just another Perl hacker,\n"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.trilug.org/pipermail/trilug-ontopic/attachments/20071221/9ca060db/attachment.pgp 

More information about the Trilug-ontopic mailing list