> ## Content Index
> Fetch the complete content index at: https://www.bagz.fr/llms.txt
> Use this file to discover other available public pages before exploring further.

# Generate a random file with specific size
- URL: https://www.bagz.fr/generate-a-random-file-with-specific-size/
- Published: 2016-10-14T10:01:29.000Z
- Updated: 2016-10-14T10:01:29.000Z
- Author: bgazui
- Tags: Linux, #Migrated-1790668826633, #wp, #wp-post, #Import 2026-09-29 08:00

It's possible to easily generate a random file with specific size filled differently depending on the needs:

- Fill a 200MB file with zeroesdd if=/dev/zero of=/tmp/file.out bs=1024KB count=200
- Fill a 200MB file with random values (longer than zeroes - depending on processor)dd if=/dev/random of=/tmp/file2.out bs=1024KB count=200