Sunday, June 22, 2014

Find Disk size of directories in Linux

Following Linux command can be used to filter size of gigabytes of directories in Linux.

du -hs * | grep G

du -hs * == calculates disk sizes
grep G   == filters gigabyte size