bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in the command "du"


From: Philip Rowlands
Subject: Re: bug in the command "du"
Date: Tue, 19 Feb 2008 13:47:50 +0000 (GMT)

On Mon, 18 Feb 2008, Jochen Röder wrote:

i've found a bug in the command "du"

When i list recursivly directories and i only want to see the binary count of all files. I become a wrong result. The command e.g. "du -ab" add the bytes from "." in every directory to the result.

This is not a bug. -a is documented to include "all files, not just directories"; its purpose is not to alter the reported totals, but to show more detail by including an output line for every "file" i.e. directory entry, which can be a regular file, directory, symlink etc.

Or did you have a parameterset to list the bytes only of the files?

Assuming you mean only regular files, there is no option to restrict du's output in this way.


Cheers,
Phil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]