Comment 2 for bug 1813601

Revision history for this message
Ian Bruntlett (ian-bruntlett) wrote : Re: [Bug 1813601] Re: tree and better recursive directory sizing

Hi,

On Wed, 30 Jan 2019 at 20:15, Prasanna V. Loganathar <
<email address hidden>> wrote:

> ** Description changed:
>
> Currently `tree -dh`/`tree -h` simply shows the size of the directory
> nodes that tend to be 4K in a default ext4 installation with 4K block
> sizes. While this is not very useful in terms of UX, it does however
> have it's use by not spending a whole lot of IO on calculating recursive
> sizes. However, in addition to the current mode, it would be great to
> have an option, that recursively adds up the size of the its contents
> and displays the total size of the directory (inclusive of all hidden
> and dot files), instead of just the directory node size.
>
> UPDATE: There's the "--du" option, that the upstream author was gracious
> enough to point out to me. This is great and solves the problem in
> theory.
>

OK, I opened up two terminal windows and was in my home directory in both
of them.

In one window I typed in
tree --du
And this gave a lot of output and a final figure.

In the other window I typed in
du -s
And this output the final figure with a dot at the end of the line.

Is this of use to you?

BW,

Ian

--
-- ACCU - Professionalism in programming - http://www.accu.org
-- My writing - https://sites.google.com/site/ianbruntlett/
-- Free Software page -
https://sites.google.com/site/ianbruntlett/home/free-software