[lug] CreateFile problem

mohan kumar mohan_linux at yahoo.com
Tue Apr 10 04:10:48 MDT 2001


--- Sean Reifschneider <jafo at tummy.com> wrote:
> On Mon, Apr 09, 2001 at 11:01:30PM -0700, mohan
> kumar wrote:
> >im trying to create a file of predefined size. In
> >windows i was able to do it with CreateFile. Is it
> >possible to do the same in linux?
> 
> Use the "dd" command.  For example, to create a file
> of size 100000 bytes
> as /tmp/foo with all bytes initially set to zero:
> 
>    dd if=/dev/zero of=/tmp/foo bs=1000 count=100
> 
> That copies 100 blocks, each of size 1000 bytes from
> /dev/zero (the device
> which always returns zero) to the file /tmp/foo.
> 
> Sean
> -- 
thanx sean...thanx a lot. i was fool enough not to
have remembered DD :-) .


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



More information about the LUG mailing list