DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far...

Welcome! This is a Q&A website for computer programmers and users alike, focused on helping fellow programmers and users. Read more

What are you stuck on? Ask a question and hopefully somebody will be able to help you out!
+1 vote

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

1 Answer

+1 vote

I was unsure tree could do it and I had to find out how on the Internet. It's 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)?

Contributions licensed under CC0