[CentOS] bsd mkfile command in centos - a wish

Les Mikesell lesmikesell at gmail.com
Mon Oct 5 19:10:48 UTC 2009

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

More information about the CentOS mailing list