file of large size

2002-10-02 Thread shubha mr

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.

Thanks in advance,
shubha

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: file of large size

2002-10-02 Thread mpd

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.

cat /dev/urandom | head -c byte count  large_file
large_file will be a byte count file of garbage data.

 
 Thanks in advance,
 shubha
 

mike

-- 
___
 
HER NAME, MY YOUNG FRIEND, IS APPARENTLY HEADCHEESE.
- Pokey the Penguin from POKEY THE PENGUIN AND HEADCHEESE

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: file of large size

2002-10-02 Thread Kris Kennaway

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



msg03613/pgp0.pgp
Description: PGP signature


Re: file of large size

2002-10-02 Thread Kevin Stevens



On Wed, 2 Oct 2002, [iso-8859-1] 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.

 Thanks in advance,
 shubha

mkfile junk 50M

KeS



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message