Categories

How to Find the total size of all the files in a directory

On Linux systems the command du can provide you with information about file sizes in directories.

Usually I use a command like this

du -hs

or

du -h –max-depth=1

to produce a quick total of the file sizes in the current directory or first level subdirectories respectively.

This is also really handy for doing quick [...]