Results 1 to 5 of 5
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
04-12-2006 #1Just Joined!
- Join Date
- Apr 2006
- Posts
- 4
Command to generate large dummy files
Hi,
I'd like to create some large binary files to test download speeds from my Suse10 server. I know there's a command to do it...but I can't for the life of me remember what it is.
Ideally, I want to create files of 10Mb, 50Mb, 100Mb, 500Mb and 1Gb.
Can anyone help?
Thanks!
-
04-12-2006 #2Code:
cat /dev/urandom > test.bin
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee
-
04-12-2006 #3Just Joined!
- Join Date
- Apr 2006
- Posts
- 4
Thanks. How do I set the sizes....?
-
04-12-2006 #4
You can do that a few ways, with:
/dev/zero (very fast)
/dev/random
/dev/urandom (chunks of size you can decide in /proc/sys/kernel/random/pool_size)
A command like that:
will generate a 1G file (and tell you how much time it took to do so).Code:time dd if=/dev/zero of=test.bin bs=1000000000 count=1
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee
-
04-12-2006 #5Just Joined!
- Join Date
- Apr 2006
- Posts
- 4
Fantastic! Just what I needed. Many thanks.


