Check out example codes for "linux how to know whhich directory used more soace". It will help you in understanding the concepts better.

Code Example 1

$ du -h --max-depth=1 | sort -hr

Learn ReactJs, React Native from akashmittal.com