[ale] making empty files

Chris Fowler cfowler at outpostsentinel.com
Tue Mar 18 19:18:46 EST 2003


Interesting..
[cfowler at minime cfowler]$ dd if=/dev/zero of=testf bs=1024k count=1
[cfowler at minime cfowler]$ ls -l testf 
-rw-r--r--   1 cfowler  devel     1048576 Mar 18 19:15 testf
[cfowler at minime cfowler]$ dd if=/dev/zero of=testf bs=1024k count=1
seek=20
[cfowler at minime cfowler]$ ls -l testf
-rw-r--r--   1 cfowler  devel    22020096 Mar 18 19:15 testf
[cfowler at minime cfowler]$ du -h testf
2.0M    testf

There is a file that has 1mb in front, 20mb of nothing, than 1mb in the
back.

That is how to create an empty file

On Tue, 2003-03-18 at 18:46, Geoffrey wrote:
> Jim wrote:
> > On Tuesday 18 March 2003 04:38 pm, Jason Vinson wrote:
> > 
> >>i am attempting to make files of various sizes to do transfer tests on
> >>my network, and i know there is a command to make an empty file of a
> >>specific size.  Can anyone give me a hint?
> 
> Hmmmm, make an empty fiel of a specific size?  If it's empty, size 
> should be zero.  Are you trying to create a file containing nulls?
> 
> touch foo
> 
> will create an empty file foo if it doesn't already exist.
> 
> > 
> > 
> > I think "touch" will do that. See the man page.
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> > 
> > 
> 
> -- 
> Until later: Geoffrey		esoteric at 3times25.net
> 
> The latest, most widespread virus?  Microsoft end user agreement.
> Think about it...
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list