foreachasync.js/examples/node/make-files.sh

9 lines
387 B
Bash
Raw Normal View History

2014-01-22 20:37:28 +00:00
mkdir -p testfiles
touch ./testfiles/0b.bin
dd bs=1m count=1 if=/dev/zero of=./testfiles/1mb.bin
dd bs=1k count=64 if=/dev/zero of=./testfiles/64kb.bin
dd bs=1k count=96 if=/dev/zero of=./testfiles/96kb.bin
dd bs=1k count=1 if=/dev/zero of=./testfiles/1kb.bin
# this will copy one block which could be between 512b and 4k (or more)
dd bs=1b count=1 if=/dev/zero of=./testfiles/block.bin