Qdirstat / Guides / Overview

What Is Qdirstat? A Complete Guide to the Qt Disk Usage Analyzer

By the Qdirstat Guides TeamUpdated 3 December 20267 min read
Magnifying glass over the reflective platter of an opened hard drive

Qdirstat is a graphical disk usage analyser. It scans a directory, ranks the files and folders by size, and maps them to rectangles in a treemap. Selecting a rectangle reveals the corresponding file in the tree.

This article explains its origins, package views, cleanup actions and practical uses for investigating storage on Linux.

Qdirstat in One Sentence

Qdirstat is a free, open-source, Qt-based application that shows directory statistics as a sortable tree and a colourful treemap, helping you find and remove the files that consume your disk space. It runs on Linux, BSD and other Unix-like systems, and it can be built on macOS. The project is released under the GNU General Public License version 2, which means anyone can use, study, modify and share it.

That definition sounds simple, and in daily use Qdirstat really is simple: you open a folder, wait a few seconds and look at the picture. The depth lies in how much information that picture contains and in the tools Qdirstat provides once you have spotted something worth investigating.

Where Qdirstat Came From

Qdirstat is the spiritual and technical successor of KDirStat, a well-known disk usage tool written for the KDE 3 desktop. KDirStat introduced many Linux users to the idea of a treemap for disk analysis, and it inspired WinDirStat, the popular Windows tool that follows the same concept. When KDE moved on from version 3, KDirStat became harder to maintain because it depended on libraries that were no longer current.

Stefan Hundhammer, the original author of KDirStat, started Qdirstat in late 2015 as a rewrite that depends only on the Qt framework. The first stable Qdirstat release arrived in 2016. Removing the KDE dependency was a deliberate choice: it means Qdirstat feels equally at home on GNOME, Xfce, Cinnamon, MATE, KDE Plasma or a minimal window manager, and it pulls in far fewer packages when installed.

Development has continued steadily since then. Qdirstat 1.7.1 introduced the Discover menu, Qdirstat 1.8 added file age statistics and browser-like navigation history, Qdirstat 1.9 in January 2024 greatly improved the appearance of the treemap, and Qdirstat 2.0 in January 2026 migrated the code base to Qt 6.

The Two Views at the Heart of Qdirstat

The Directory Tree

The upper half of the Qdirstat window is a tree list, similar to a file manager in detail mode but organised by size. Each row shows a file or directory with columns such as name, subtree percentage, size, number of items, number of files, number of subdirectories and the latest modification time. The percentage column includes a coloured bar, so the heaviest branches stand out immediately even before you read the numbers.

Because the tree is sorted by size by default, the biggest consumer of space always sits at the top of each level. Expanding that branch and repeating the process usually leads you to the real culprit in just a few clicks.

The Treemap

The lower half is the treemap. Here, every file becomes a rectangle whose area is proportional to its size. Files in the same directory are grouped together, and those groups are nested inside the rectangles of their parent directories. Qdirstat uses cushion shading, which gives each rectangle a soft, raised appearance so that the boundaries between files and folders remain visible even when thousands of items are drawn.

Colours represent file types. Videos, images, archives, source code and other categories each receive their own colour, so a large uniform block instantly tells you not only that something is big but also what kind of thing it is.

Why Synchronisation Matters

The magic of Qdirstat lies in the link between the two views. Click a large rectangle in the treemap and the tree jumps to that file, expanding every parent folder along the way. Select a directory in the tree and its area is highlighted in the treemap. This two-way connection lets you move between the overview and the details without losing your place.

Key Qdirstat Features Beyond the Basics

  • Cleanup actions. Right-click a selection to move it to the trash, delete it, open a terminal or file manager in that location, compress it, or run commands such as make clean. You can define your own actions with custom shell commands.
  • Package view. On systems using dpkg, rpm or pacman, Qdirstat can show disk usage grouped by installed package, revealing which applications occupy the most space.
  • Unpackaged files view. The opposite perspective lists files in system directories that do not belong to any package, which is useful for finding leftovers from manual installations.
  • File type statistics. A dedicated window breaks down usage by extension and MIME category.
  • Discover menu. One-click lists of the largest, newest and oldest files, files with multiple hard links, broken symbolic links and sparse files.
  • File age and size statistics. Reports that show how much data was modified in each year or month, plus histograms of file sizes.
  • Mounted filesystems overview. A df-like table of used, free and reserved space for every mounted filesystem.
  • Exclude rules. Patterns that tell Qdirstat to skip directories such as .git or .snapshots during a scan.
  • Cache files. A Perl script called qdirstat-cache-writer can scan a remote server and produce a compact file that Qdirstat reads on your desktop.

Who Should Use Qdirstat?

Qdirstat suits a wide range of people. Home users on laptops with modest SSDs use it to find forgotten downloads, oversized video projects and caches left behind by browsers or games. Developers use it to locate heavy dependency folders, build artefacts and container layers. System administrators rely on it to understand why /var or a data partition is filling up, and to plan archiving or capacity upgrades.

Even experienced command-line users who know du and ncdu often prefer Qdirstat when the question is broad rather than specific. A terminal listing tells you which directory is largest; a treemap shows you the entire distribution of space at once, including patterns you did not think to look for.

How Qdirstat Fits into a Healthy Disk Routine

The most effective way to use Qdirstat is as a regular check rather than an emergency tool. A short monthly scan of your home directory and a quarterly scan of system partitions keeps surprises to a minimum. Over time you will recognise the usual shape of your treemap, and anything new or unusually large will catch your eye immediately.

Pair Qdirstat with sensible habits: keep backups before large cleanups, prefer moving files to the trash rather than deleting them permanently, and avoid running Qdirstat as root unless you specifically need to inspect protected system directories. These precautions let you enjoy the speed of Qdirstat without the risk of removing something important.

Getting Qdirstat

On most Linux distributions Qdirstat is available directly from the official repositories. Debian and Ubuntu users install it with sudo apt install qdirstat, Fedora users with sudo dnf install qdirstat, and openSUSE users with sudo zypper install qdirstat. On Arch Linux, Qdirstat is maintained in the AUR. If you want the newest development code, you can download the master-branch source archive and build it with Qt 6.

Windows does not have an official native Qdirstat build, but you can run it through WSL2 or Docker. Our dedicated guides walk through each of these routes step by step.

Qdirstat Releases at a Glance

ReleaseYearHighlights
Qdirstat 1.02016First stable Qt-only successor to KDirStat
Qdirstat 1.7.12021Discover menu for largest, newest and oldest files
Qdirstat 1.82021File age statistics and back/forward navigation
Qdirstat 1.92024Much improved treemap rendering
Qdirstat 2.02026Migration to Qt 6

If your distribution still offers Qdirstat 1.9, you lose very little in daily use; the core tree, treemap and cleanup features are the same.

Frequently Asked Questions

Is Qdirstat the same as WinDirStat?

No. WinDirStat is a separate Windows program inspired by KDirStat. Qdirstat is the modern Qt-based successor to KDirStat written by the original KDirStat author, and it targets Linux and other Unix-like systems.

Does Qdirstat need KDE to run?

No. Qdirstat depends only on Qt and a few small libraries, so it runs on any desktop environment without installing KDE components.

Can Qdirstat damage my files?

Scanning is read-only and cannot damage anything. Files are only changed when you deliberately run a cleanup action, and destructive actions ask for confirmation first.

How long does a Qdirstat scan take?

On an SSD, a home directory with a few hundred thousand files usually finishes within seconds. Large spinning disks and network shares take longer because reading metadata is slower.

Conclusion

Qdirstat turns a frustrating question into a visual answer. Its synchronised tree and treemap show both the overall distribution of space and the exact files behind it, while features such as cleanup actions, the package view and the Discover menu help you act on what you find. Free, open source and comfortable on any desktop, Qdirstat deserves a permanent place in every Linux user’s toolkit.