Including all the files, hidden files, and subfolders. I need the total size, but also the size by subfolder like this
/folder 5.03GB sub1 1GB sub2 4GB file_a 20MB file_b 10MB
I was unsure tree could do it and I had to find out how on the Internet. It's tree --du -h
tree
tree --du -h
Can it be made to show only the cumulative size of subfolders, without showing all the subfolders' trees (like on my example in the question)?
I think not...try https://github.com/nachoparker/dutree