一.生成任意大小的文件(dd命令): 举例: amosli@amosli-pc:~/learn/example$ ; + records in + records out bytes ( MB/s amosli@amosli-pc:~/learn/example$ ls test.zip dd命令介绍:创建特定大小的文件最简单的方法就是使用dd命令,dd命令会克隆给定的输入内容然后将一模一样的一份副本写入到输出.stdin,设备文件,普通文件都可以作为输入,stdout,设备文件,普通文件等都可
$ dd if=/dev/zero of=junk.data bs=1M count=1 参数: if (input file) of (output file) bs(block size) count(需要复制的块数) bs 单位(c w B K M G) /dev/zero 特殊的字符设备,返回0值字节(\0)