What if you could instantly see which folders are secretly eating up all your disk space?
Why du (disk usage by directory) in Linux CLI? - Purpose & Use Cases
Imagine you have a cluttered closet with many boxes, and you want to find out which boxes take up the most space. Without a tool, you would have to open each box, measure its contents, and write down the sizes manually.
Doing this by hand is slow and tiring. You might forget some boxes or make mistakes measuring. It's hard to keep track, and you waste time just trying to figure out where your space is going.
The du command quickly checks the size of every folder and subfolder for you. It shows you exactly how much space each directory uses, so you can spot the biggest space hogs instantly without opening anything.
open folder1; check size; write down; open folder2; check size; write down; ...
du -h --max-depth=1With du, you can easily find and manage disk space, keeping your system clean and efficient.
When your computer warns you that the disk is almost full, you can run du to quickly find which folders are using the most space and decide what to delete or move.
Manually checking folder sizes is slow and error-prone.
du automates disk usage checks, saving time and effort.
This helps keep your storage organized and prevents surprises.