Find folder sizes on Ubuntu
Submitted by admin on Mon, 06/24/2013 - 09:31Scenario
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.