Find folder sizes on Ubuntu

Scenario

I needed to find out the amount of data stored in a group of folders. Each of the folders contains a web site, and I want to track the sites on-disk usage statistics.

Prerequisites

Linux system running bash.

du binary (typically induced in linux base install or busybox.

Tested on Ubuntu 12.

Command

du -shc *

Explanation:
s ..... Summary
h ..... Human Readable. K, M, and G for sizes.
c ..... Summary or Total
* ..... All files or folders in the current directory.

For more info: http://ss64.com/bash/du.html

Tags: