[Users] Size of each sub-dirs ?

Norwid Behrnd nbehrnd at yahoo.com
Thu Oct 6 15:32:35 CEST 2022


On Thu, 6 Oct 2022 15:07:33 +0200
Alain Coulais <alain.coulais at obspm.fr> wrote:

> I was not able to find a way to know the size
> of sub-directories (to know the cumulative size
> would help to clean up the biggest sub-dirs ;)

@Alain  You mention Linux at your disposition, so check if you have
`tree` installed.  Then

```shell
tree --du -h
```

often is sufficient for me.  As you may infer, it is about reporting disk usage
in a human readable format (kilo, Mega bytes/octets) per file, folder and a
grand total.  An optional `--L 2` you otherwise might use to limit the display
to two levels of hierarchy has an impact of the analysis, so typically I don't
use this parameter.

Bonne journée,

Norwid


More information about the Users mailing list