๐ฅ๏ธ Checking Disk Size in Linux | The Best Tools for the Job ๐
Monitoring Disk Usage in Linux | Top Tools for Keeping Storage in Check

If you're running Linux, keeping an eye on your disk usage is crucialโespecially if your storage starts filling up mysteriously. ๐ฑ Fortunately, Linux provides several powerful tools to check disk size, monitor usage, and clean up space when needed. Let's explore some of the best ways to get a disk space reality check and how to hunt down those space-hogging files.
๐ 1. Using df -H (Disk Free)
The df (disk free) command is a quick and easy way to check the size and available space of mounted filesystems.
Run the following command in your terminal:
df -H
This will display something like:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 500G 320G 180G 64% /
tmpfs 4.2G 2.1M 4.2G 1% /dev/shm
/dev/sdb1 2.0T 1.3T 700G 65% /mnt/data
โ
Why use df -H?
โ๏ธ Quick overview of disk usage
โ๏ธ Shows total disk size, used space, and free space
โ๏ธ -H makes the output human-readable (e.g., GB instead of bytes)
๐ 2. Checking Disk Usage with btop
For a modern and interactive view of system performance, btop is an awesome tool.
Install btop:
sudo apt install btop -y # Debian/Ubuntu
sudo dnf install btop -y # Fedora/RHEL
Then, simply run:
btop
You'll get a real-time dashboard with CPU, memory, network, and disk usage stats. ๐ต๏ธโโ๏ธ
โ
Why use btop?
โ๏ธ Real-time monitoring of disk usage
โ๏ธ Graphical interface (without needing a GUI)
โ๏ธ Great for tracking disk activity and bottlenecks
๐ 3. The Best Tool for Finding Large Files: ncdu
If you're running out of space and need to find the biggest offenders, ncdu (NCurses Disk Usage) is the ultimate tool. ๐ฅ
Install ncdu
sudo apt install ncdu -y # Debian/Ubuntu
sudo dnf install ncdu -y # Fedora/RHEL
Run ncdu in the root directory to scan everything:
sudo ncdu /
This will scan your entire system and present a sortable, interactive list of the largest files and directories. You can navigate using the arrow keys and even delete files directly from the interface by pressing d. ๐๏ธ
โ
Why is ncdu the best?
โ๏ธ Faster than du (Disk Usage)
โ๏ธ Sorts files by size automatically
โ๏ธ Interactive interface makes cleanup easy
โ๏ธ Saves time when dealing with full disks
๐ฏ Wrapping Up
Linux gives you many ways to check your disk usage, but the best approach depends on what you're trying to do:
๐ Need a quick summary? โ Use df -H
๐ Want real-time stats? โ Use btop
๐ Need to track down big files? โ Use ncdu
If you're dealing with low disk space, ncdu is the best tool to hunt down and delete unnecessary files. Happy cleaning! ๐งนโจ
Got questions or need more tips? Drop them below! โฌ๏ธ
About the author
Driving SD-WAN Adoption in South Africa
Comments
Join the discussionNo comments yet. Be the first to comment.




