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:

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.