Random file of set length

Góra strony
Załączniki:
Wiadomość jako email
+ (text/plain)
Delete this message
Reply to this message
Autor: Thomas Tate
Data:  
Temat: 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