Disk Usage – How to Understand What’s Taking Up Disk Space

disk-usagesoftware-rec

I'm looking for a linux alternative to WinDirStat. I would like to know what is taking up space on my hard drives.

A program that works on console and doesn't require a UI is preferred .

Best Answer

Based on your issues in installing ncdu my recommendation would be to use du and sort on together.

For instance:

  • du /home | sort -rn (will search all files/directories under /home and sort them by largest to smallest.
  • du -h /home | sort -rh (same but will show it in MB/KB/etc) - Note this requires coreutils 7.5 or newer (sort --version to check)

You can replace /home with any directory of your choice.

Related Question