我的操作系统和驱动器是
OS: Windows XP sp2 or Linux SUSE 9 or Cygwin Compiler: Visual C++ 2003 or Gcc or Cygwin PC and os are both 32 bits
那么,如何在秒中创建一个超大文件
解决方法
在Linux中使用dd创建一个1 GB的文件需要57秒的“挂钟时间”,在一个有点装载的盒子上,磁盘速度慢,系统时间约为17秒:
$time dd if=/dev/zero of=bigfile bs=G count=1 1+0 records in 1+0 records out 1073741824 bytes (1.1 GB) copied,53.9903 s,19.9 MB/s real 0m56.685s user 0m0.008s sys 0m17.113s $