Get Size Of A Directory Or File
Need to get the size of a directory in linux? Use the du command to output the size of a file or directory. Use the flags to give a more useful output.
If you want to see which directories are taking up the most room on your system you can
use the -a
flag and sort by which is taking up the most space:
Read more about it the docs