Skip to main content

"du" is the Linux command for reporting Disk Usage

Use this when the topic includes the use of the du command which shows disk space usage.

There are many options to this command, and one of the most useful if to use do -sh dirname or do -sh . to see the size of a particular (or current) directory without having it go through and show all the details.

-h means to make it human-readable (i.e. 1GB instead of a long number)

-s means to show just the summary without all the clutter of the component files and subdirectories.