牛栏山

一个讨厌CSDN的家伙

导航

生成指定大小的文件

Windows

fsutil file createNew 5MB 5242880
fsutil file createNew 50MB 52428800
fsutil file createNew 500MB 524288000
fsutil file createNew 5000MB 5242880000
fsutil file createNew 1GB 1073741824
fsutil file createNew 2GB 2147483648
fsutil file createNew 3GB 3221225472
fsutil file createNew 4GB 4294967296

Linux

dd if=/dev/zero of=5MB count=1048576 bs=5
dd if=/dev/zero of=50MB count=1048576 bs=50
dd if=/dev/zero of=500MB count=1048576 bs=500
dd if=/dev/zero of=5000MB count=1048576 bs=5000
dd if=/dev/zero of=1GB count=1048576 bs=1024
dd if=/dev/zero of=2GB count=1048576 bs=2048
dd if=/dev/zero of=3GB count=1048576 bs=3072
dd if=/dev/zero of=4GB count=1048576 bs=4096

  

posted on 2022-08-01 11:24  牛栏山  阅读(135)  评论(0编辑  收藏  举报