実験時にある特定のサイズをもったファイルを作りたいとき用のメモ
dd if=/dev/zero of=./hoge bs=<block_size> count=<count>
$ dd if=/dev/zero of=./hoge bs=1 count=100 100+0 records in 100+0 records out 100 bytes (100 B) copied, 0.000647603 s, 154 kB/s $ ls -la ./hoge -rw-rw-r-- 1 maintainer maintainer 100 Jul 30 12:43 ./hoge
でかいファイル作るときはまあ適当に
$ dd if=/dev/zero of=./hoge bs= 16k count=100
fsutil file createnew <filename> <bytes>
fsutil file createnew ./hoge 100
ウェブ界隈でエンジニアとして労働活動に励んでいる @gomi_ningen 個人のブログです