find prints wrong file size for files >2GB

Brian Dessent brian@dessent.net
Mon Dec 6 12:24:00 GMT 2004


Yitzchak Scott-Thoennes wrote:

> Now wait a minute; that was *my* testcase!  Oh, well.
> I hearby place that code in the public domain; retroactively for
> Jacek Trzmiel's benefit.
> 
> Would a truncate.exe be welcome in one of the cygwin packages?  I
> kind of thought there was one on some unixes but a search didn't
> turn up anything.

There's no need for a special purpose program to do this.  'dd' has this
capability among many others:

dd if=/dev/zero bs=1 count=0 seek=2G of=filename

Brian



More information about the Cygwin-talk mailing list