Home   Profile   Fun
#140 Linux  03.07.2007

Create large files with random content


With dd you can create large files of a specified size in seconds. The following example creates the file "file.big" with a size of 20MB. This is 20971520 Bytes exactly. The file contains random data.

It is important to check the file size when dd is finished!

dd if=/dev/urandom of=file.big bs=1M count=20