in unix

Linux Pro Tip: Analyzing disk usage

A short guide to few of my favorite tools for analyzing disk usage.

If you just need to find large files, you can use find with -size option. Below command will list all the files larger than 100MB.

find / -size +100M -ls

If you want to set an upper limit.

find / -size +100M -size -500M -ls

If you need a tool for better analysis, continue reading…


Years have passed and disks have become larger and larger, but even on this incredibly huge harddisk era, the space seems to disappear over time. This small and effective programs provides more convenient listing than the default du(1). It displays what has happened since last run and displays dir size and the total percentage. It is possible to navigate and ascend to directories by using cursor-keys with text based browser (links, elinks, lynx etc.)


Ncdu is a ncurses-based du viewer. It provides a fast and easy-to-use interface through famous du utility. It allows to browse through the directories and show percentages of disk usage with ncurses library.

I personally prefer ncdu. It’s pretty fast and verbose than gt5. Go ahead and find for yourself.

Write a Comment