[CentOS] bsd mkfile command in centos - a wish

Mon Oct 5 18:14:04 UTC 2009
aurfalien at gmail.com <aurfalien at gmail.com>

Hi Les,

Yes, I do run dd to create Xen image files but was hoping to use a  
more elegant solution.

Looks like I'll continue with dd but if any one else has some secrets,  
please share.


On Oct 5, 2009, at 11:10 AM, Les Mikesell wrote:

> aurfalien at gmail.com wrote:
>> I enjoy the convenience of mkfile command found in Irix and BSD based
>> distros.
>>
>> This command allows me to make files of any size;
>>
>> usage: mkfile [-nv] size[b|k|m|g] filename ...
>>
>> I've looked here and there and can't seem to find it for Centos.
>>
>> Any one have ideas on were I can get at least the source for it?
>>
>> I got something off a BSD ports page but its for BSD type systems.
>
> dd's syntax is a little weird but it should do the job:
>
> dd if=/dev/zero of=your_filename bs=1K count=size_in_KB
>
> ==
>   Les Mikesell
>    lesmikesell at gmail.com
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos