Anand Vaidya wrote:
Linux Way of doint it:
dd if=/dev/zero of=filename.txt bs=1 count=$bytes


Couldn't resists optimising this further using sparse files :)

 dd if=/dev/zero of=filename.txt bs=1 count=0 seek=$bytes

See how fast it is to make a 1TB file this way e.g.:

 time dd if=/dev/zero of=filename.txt bs=1 count=0 seek=1T

~mc

_______________________________________________
Slugnet mailing list
[email protected]
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to