From owner-freebsd-questions Wed Oct 2 0:37:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C3C337B401 for ; Wed, 2 Oct 2002 00:37:43 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-165-226-88.dsl.lsan03.pacbell.net [64.165.226.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2871A43E7B for ; Wed, 2 Oct 2002 00:37:43 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 712A266B79; Wed, 2 Oct 2002 00:37:42 -0700 (PDT) Date: Wed, 2 Oct 2002 00:37:42 -0700 From: Kris Kennaway To: shubha mr Cc: freebsd-questions@FreeBSD.ORG Subject: Re: file of large size Message-ID: <20021002073742.GA65946@xor.obsecurity.org> References: <20021002072517.28439.qmail@web14611.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <20021002072517.28439.qmail@web14611.mail.yahoo.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9mqJFWry0BWjoQKURAlCDAKDRgkIgkeAjlAYOhMSPV4R/FJhUTgCg/jBX vEMKqbPJVI0PRmyIEOL7TU4= =chtv -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message