Quickly create files of a specific size for tests

Sometimes I’ve had to create files to test transfer speeds between points.. sure you could transfer that 650 meg iso image of freebsd, or you could create a “blank” file..

dd if=/dev/zero of=linux.ex2 bs=1024 count=131072

creates 128mb blank file

dd if=/dev/random of=linux.ex2 bs=1024 count=131072

creates 128mb file with random characters in it

for example.. play around with the count numbers in bytes and your set.

Leave a Comment