Home Creating Test Files
Post
Cancel

Creating Test Files

Random command lines to create test files.

1
2
3
4
dd if=/dev/urandom of=sample.txt bs=64M count=160 # 10GB
dd if=/dev/urandom of=sample.txt bs=64M count=800 # 50GB
dd if=/dev/zero of=sample.txt bs=1G count=200 # 200GB
dd if=/dev/urandom of=sample.txt bs=1G count=200 # 200GB

source: https://superuser.com/questions/470949/how-do-i-create-a-1gb-random-file-in-linux

This post is licensed under CC BY 4.0 by the author.