Let's say I want to get the size of each directory of a Linux file system. When I use ls -la
I don't really get the summarized size of the folders.
If I use df
I get the size of each mounted file system but that also doesn't help me. And with du
I get the size of each subdirectory and the summary of the whole file system.
But I want to have only the summarized size of each directory within the ROOT folder of the file system. Is there any command to achieve that?
--total
flag was helpful for me. E.g.du -sh --total applications/*
. askubuntu.com/a/465436/48214