1.Windows中生成文件的命令:
fsutil file createnew [文件位置] [文件字节数]
2.Linux生成文件的命令:
dd if=/dev/random of=10M bs=1M count=10
注:of参数设置文件名 bs*count=总文件大小
本文介绍了在Windows和Linux系统中生成指定大小文件的方法。Windows下使用fsutil file create new命令,通过指定文件路径和字节数来创建文件;Linux环境下则采用dd命令,利用/dev/random作为输入源,设置目标文件名及文件大小。
1.Windows中生成文件的命令:
fsutil file createnew [文件位置] [文件字节数]
2.Linux生成文件的命令:
dd if=/dev/random of=10M bs=1M count=10
注:of参数设置文件名 bs*count=总文件大小

被折叠的 条评论
为什么被折叠?