find prints wrong file size for files >2GB
Yitzchak Scott-Thoennes
sthoenna@efn.org
Mon Dec 6 19:05:00 GMT 2004
On Mon, Dec 06, 2004 at 04:27:54AM -0800, Brian Dessent wrote:
> 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
Can that work in place (just modifying a file without creating another)?
How would you extend/shorten an existing file using that?
More information about the Cygwin-talk
mailing list