Archive for September, 2010 | Monthly archive page
Creating random files.
Here is a bash script to create 100 random files with random sizes smaller than 400KB. I needed this to quickly generate 100 files to use it on a stress test. for ((i=1;i<101;i++)); do size=`expr $RANDOM % 400` dd if=/dev/urandom of=/tmp/testfile.$i bs=1024 count=$size done Explanation: The for loop is pretty straightforward, it counts from 1 [...]
Froggy
Froggy, originally uploaded by Emre Saglam. Froggy chilling on moss
