Use Agedu to Analyze Hard Disk Space Usage in Linux

Whatever the size of your hard drive – and drives are now larger and cheaper than ever – it can be surprising just how quickly the available space gets eaten up. You can easily set about the task of deleting files you no longer needs, but how do you track down the big files that will make a real difference, particularly in a server environment where you have no access to any graphical file manager? This is where Agedu can help to analyze hard disk space usage in Linux.

Agedu is a command line utility that enables you to not only hunt down large files that are taking up valuable space on your hard drive but those that have not been accessed in a while. It is entirely possible that you have some very large files lurking in the darker recesses of your drive where you would not think to look.


In Ubuntu (or Ubuntu-based distro), you can easily install Agedu with the command:

However, the version in the repository is out-dated, so you might want to grab the latest version from the program website – scroll down to the Download section towards the bottom of the page to locate the download link.

Extract the contents of the tar.gz archive. Open the terminal and navigate to the agedu folder. Type the following commands to compile/install:


Once you have installed Agedu, the first thing you need to do is build up an index of the contents of your drive. To index your home directory, type the following command in the Terminal.

Once the index is created, you can then opt to view the data that has been gathered in your web browser.


Right click the URL and copy the link. Open your web browser and paste the URL into the address bar.

grab Agedu link address

Here you can navigate through a series of graphs that indicates not only which folders are taking up the most room, but by hovering the mouse over a bar you can see when they were last accessed.

analyze hard disk space usage with Agedu web view

In this way, you can easily identify folders that are taking up a lot of space but do not necessarily contains files that you need to access very often – such folders could be moved to an external hard drive.

It might take you a little while to track down all of the space hogs, but using Agedu is a good deal faster than manually checking the size and usage history of folder after folder.

Don’t forget to clean up after Agedu. It leaves behind a potentially large index file in whatever folders you scan. This can be removed by running the following command at the Terminal:

Of course, you can replace /home with whichever folder you need.

Agedu also comes with several configuration options, so don’t forget to check out the man page for advanced usage.


On your desktop, there are more useful (graphical) tool that you can use to find out disk usage, but in a server, Agedu really shines.

Mark Wilson

Mark Wilson is a software fiend and a fan of the new, shiny and intriguing. Never afraid to get his hands dirty with some full-scale geekery, he’s always trying out the latest apps, hacks and tweaks. He can be found on Google+, Facebook and Twitter.


  1. The title of your article is wrong. It should be “Use Agedu to Analyze Hard Disk Space Usage in UBUNTU”. Ubuntu is NOT synonymous with Linux. There are hundreds of other active Linux disros in use besides Ubuntu.

    While the procedures and commands you outline may work for other Debian-based distros, what about the distros based on RedHat, Slackware, Gentoo or Mandrake/Mandriva/Mageia? They are all Linux and all use othert package managers than “apt”. Does “agedu” even exist in their package repositories? I know for a fact that Arch repositories do not.

    It is false advertising and raising of false hopes to imply in the title that the solution is for all Linux and then present one that is only applicable to Ubuntu and maybe its derivatives.

Comments are closed.