Use du command to see file and folder sizes

By | 2010/11/21

How can I see the size of files and folders from the command line?

Use the command du to quickly list sizes!

A command I like to use is:

du -hsc *

This will provide a listing of file and folder sizes from your current working directory, including a total size amount at the bottom.

Here is a random example of me running this to check my home directory: