Creating Empty Files of Any Size

January 14, 2007

This is again one of those cool things that you could never do with OS 9 or older:

> dd count=`echo $((1024*1024/512*sizeinmegs))` if=/dev/zero of=myfile.zeros

Perfect for testing drives, networks or file transfer apps. Update:

man mkfile