Hello,
I need to create 100kb,1000kb,10000kb etc files of no particular substance but I need them a exact size.
I think they are .dat's I need but im unsure of the command I issue to create them
Any help appreciated
Mr Pink
Hello,
I need to create 100kb,1000kb,10000kb etc files of no particular substance but I need them a exact size.
I think they are .dat's I need but im unsure of the command I issue to create them
Any help appreciated
Mr Pink
find first 100kb file and then "man dd"
You could use dd to create the 100k file by sourcing /dev/urandom
use mkfile. gets you exacts.
mkfile
Usage: mkfile [-nv] <size>[g|k|b|m] <name1> [<name2>] ...
ex:
mkfile 1024m testfile
exact.
-S
Hi:
There's a little known device called /dev/zero which can quickly create a file of known size. This command:
dd if=/dev/zero of=myfile bs=1024 count=10
creates file "myfile" filled with zeros with a block size of 1000 muliplied 10 tens or 10K.