The nightmare of folder and sizes in Unix systems

Finally found a nice tool to work with folder and sizes on unix systems, it’s called ncdu:

apt list --installed | grep ncdu
ncdu/bionic,now 1.12-1 amd64 [installed]

To list folder sizes just use

ncdu /example_folder/example_folder

You can exclude folders with the follwoing comand:

ncdu /example --exlude /example --exclude /example 

The output looks very nice and easy to understand:

ncdu 1.12 ~ Use the arrow keys to navigate, press ? for help 
--- /example -------------------------------------------------------------------------------------------------------------------------------------------------
449.5 GiB [##########] /example
276.3 GiB [###### ] /example
241.9 GiB [##### ] /example
100.0 KiB [ ] /.Trash-96407336
4.0 KiB [ ] README

Its possible to navigate with the arrow keys to subfolder and etc.