linux 下的特殊文件 /dev/null 和 /de/zero

生成一个100Mb的文件 : time dd of=2Gb.file if=/dev/zero  bs=1024 count=100000

ubuntu 下测试磁盘的读写性能: 

测试写: time dd of=1Gb.file if=/dev/zero  bs=1024 count=1000000

测试读:time dd if=1Gb.file of=/dev/null  bs=1024 count=100000

原文地址:https://www.cnblogs.com/oxspirt/p/6626862.html