株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

ddコマンドでできるよ。

#50MB
[root@test /]# dd if=/dev/zero of=tmpfile bs=1024 count=50000
50000+0 レコード入力
50000+0 レコード出力
51200000 バイト (51 MB) コピーされました、 0.104515 秒、 490 MB/秒
[root@test /]# du -sh tmpfile
49M     tmpfile

#500MB
[root@test /]# dd if=/dev/zero of=tmpfile bs=1024 count=500000
500000+0 レコード入力
500000+0 レコード出力
512000000 バイト (512 MB) コピーされました、 1.11928 秒、 457 MB/秒
[root@test /]# du -sh tmpfile
489M    tmpfile

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)