Re: Create files with specific sizes?

qwms-avib
2004-12-14T19:20:29Z

SVisor wrote:
>
> >>is there any way (some command) that will allow me to
> >>create blank files with specific sizes, eg 1MB, 5MB, 10MB etc.
> ...
> > dd if=/dev/zero of=file1 bs=1k count=1024
>
> I wanted a file of garbage, not zeroes.

Just pick a sufficiently large file or device
for your input stream. For example:

dd if=/dev/hda of=file1 bs=1k count=1024

Cheers,
Steven

____________________________