Pedro Vagner

Get Directory Size via Command Line

a year ago
TutorialLinux

Get directory size and all its contents (first depth) using human units:

du -h -d 1 /file/path

Get directory size only (summarize) using human units:

du -sh /file/path

To check more than one directory and see the total, use:

du -shc /file/path