Random file of set length

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Thomas Tate
Dátum:  
Tárgy: Random file of set length
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 -
> 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

http://tank.dyndns.org:8080