On Wed, Oct 02, 2002 at 08:25:17AM +0100, shubha mr wrote:
> Hi,
> Can anyone suggest me a shell script or a command to
> create a large file in BSD(aroung 50 MB).Any junk data
> in it is also fine.

truncate -s 50M /path/to/file

This creates a sparse file (i.e. it doesn't take up 50M of disk
space).  If you actually need space to be allocated, use dd(1).

Kris

Attachment: msg03613/pgp00000.pgp
Description: PGP signature

Reply via email to