Random file of set length

Thomas Tate plug-discuss@lists.plug.phoenix.az.us
11 Sep 2002 15:44:59 -0700


On Wed, 2002-09-11 at 15:35, Gilbert T. Gutierrez, Jr. wrote:
> I want to create a random file of 5MB.  How do I do that?
> 
> Gilbert
> 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

/dev/random is there for just this purpose. A simple

	[foo@bar]$ dd if=/dev/random of=filename bs=1M count=5

Should do the trick.

--
Thomas "Mondoshawan" Tate
mondoshawan@tank.dyndns.org
http://tank.dyndns.org:8080