How to Check the Size of a Directory in Linux

The du (Disk Usage) command is the best way to see how much space a folder is taking up.

Using du

  1. Open your terminal.
  2. Type du -sh /path/to/folder and press Enter.
  3. The -s flag gives a single summary total, and -h makes the size human-readable (like 1.5G instead of bytes).

Leave a Reply

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

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.

Receive our best articles and tips delivered straight to your inbox.