其他分享
首页 > 其他分享> > 生成指定大小的文件

生成指定大小的文件

作者:互联网

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

  

标签:文件,dd,fsutil,1048576,指定,生成,zero,file,bs
来源: https://www.cnblogs.com/mainos/p/16539550.html