[nzlug] Woes with du
Mark Foster
blakjak at blakjak.net
Sat Sep 16 17:51:18 NZST 2006
--apparent-size
print apparent sizes, rather than disk usage; although
the apparent size is usually smaller, it may be
larger due to holes in (`sparse') files, internal
fragmentation, indirect blocks, and the like
?
On Sat, 16 Sep 2006, Johnathan wrote:
> Hi guys
>
> I'm looking for an alternative to du because of the fact that it
> overestimates file sizes.
>
> I know the man pages says that it's a estimate only, but I didn't think it
> meant it was an ESTIMATE :p
>
> It seem to work on file plateau sizes in order to estimate efficiently (e.g.
> flat ascii file with 1 line of text is shown as 4KB, same as a file with 4
> lines of text say).
>
> This caught me off guard when I tried to find out how big kdelibs.
>
> "du -sh" claims 229MB. Konqueror (rightly) says 118.5MB
>
> Does anyone know of a commandline utility that can give better estimations
> than what du can do?
>
> Thanks in advance.
> Johnathan
>
> _______________________________________________
> NZLUG mailing list NZLUG at linux.net.nz
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
>
More information about the NZLUG
mailing list