Linux Command to Find the Size of Multiple Directories and Their Total Size
Posted on May 2, 2014 in Command Line, Linux by Matt Jennings
Below are Linux commands to display the size of each individual directory inside a parent directory AND the total size of those directories together.
So is if I was in a directory called /home/janedoe
that had directories of janedoe.com
and janeswebsites.com
, then I if I typed du -shc *
and pressed Enter
, I’d see something similar to the code below outputted:
3.1G janedoe.com 4.5G janeswebsites.com 7.6G total