On Wed, 2005-08-24 at 12:13, Stephen Carter wrote:
jdd sur free
08/24/05 10:46 AM >>> man dd (if=/dev/null) jdd
Thanks for the tip to using the dd tool. I found the actual commands from other web sites easily once I knew what to look for.
Using /dev/null as the input never produced anything though, which thinking about it makes sense, as how could you create anything from nothing, which I think the /dev/null device is?
For anyone else on the list who may find this interesting the command should be something like:
dd if=/dev/zero of=/outputfile bs=1024 count=1
This command will read in the /dev/zero file (a special area of memory with all zeros), create a file called outputfile with a byte size (bs) of 1024 repeated once (count), which will create a 1Kb file. For a 1Mb file you would simply increase the count value to 1024.
SteveC
Hi, only drawback of reading /dev/zero is that the file contains only zero's. If you realy need junk, try reading from /dev/random (with dd) or try dd if=/dev/zero of=/outputfile bs=1024 count=1 ; shred outputfile Hans