Nate Weiner

This is an old archived post from my former blog The Idea Shower. It's where I cataloged my product explorations and releases, one of which ultimately became Pocket.

This post was published back in 2008. It may not function as originally intended or may be missing images.

Find the Files/Folders Taking Up the Most Space in Unix

August 19, 2008

If you're logged into your server and trying to pin down what folders are taking up the most space on your hard drive, there are simple commands to compile an organized list.

First, to see the disk space usage of your drives and partition, run:

This will output a list of all drives/partitions on your system, the size, usage and percent used.

If you'd like to see all of the folders in a particular directory sorted by their filesize use the du command.

du -ks ./* | sort -n