December 30, 2022

Generate N files with N size

This will create 100 files each containing 1MB of random data:

for i in {001..100}; do head -c 1M </dev/urandom >filename$i; done