This site will be decommissioned on November 1, 2020
Generate random files
The command below will create 1000 files with random content and size between 500Kb and 25Mb
- -w 1 1000 - number of files
- of=file_%.log - filename
- -i51200-2621440 - minimum and maximum size of files. Actual size will be multiplied by value of count (10 in our case)
seq -w 1 1000 | xargs -n1 -I% sh -c 'dd if=/dev/urandom of=file_%.log bs=$(shuf -i51200-2621440 -n1) count=10'