Random file of set length

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Kevin Buettner
日付:  
題目: Random file of set length
On Sep 11, 3:35pm, Gilbert T. Gutierrez, Jr. wrote:

> I want to create a random file of 5MB. How do I do that?


dd if=/dev/random of=myrandomfile bs=1024 count=5k

You may also want to try /dev/urandom in place of /dev/random. (The
results will be less random, but the file should be created quite a
lot faster.)

Kevin