[ale] making empty files

Jason Vinson jason.vinson at mindspring.com
Tue Mar 18 17:06:10 EST 2003


Sorry, it was intended to say "create a zero file of specific size".  
the dd command works well.

Thanks,
Jason


On Tuesday, March 18, 2003, at 04:47  PM, Byron A Jeff wrote:

>>
>> On Tuesday 18 March 2003 04:38 pm, Jason Vinson wrote:
>>> i am attempting to make files of various sizes to do transfer tests 
>>> on
>>> my network, and i know there is a command to make an empty file of a
>>> specific size.  Can anyone give me a hint?
>>
>> I think "touch" will do that. See the man page.
>
> I think the original question was poorly phrased. Try parsing "empty 
> file of
> a specific size" to see what I mean. I took this as "zero file of a
> specific size".
>
> The dd command will do what you need. By using a combo of blocksize 
> and count
> you can create a file of any size that you need. For example a 4MB 
> (2^20 not
> 10^6) file of zeros can be created with:
>
> dd if=/dev/zero of=4mb-zero-file bs=1024k count=4
>
> the 1024k is (2^20)
>
> Hope this helps,
>
> BAJ
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list