~/ Qdirstat / overview

Qdirstat - Visualize and Reclaim Disk Space

Qdirstat shows how much disk space your files use on Linux, BSD and macOS. Scan a folder, spot large files in an interactive treemap, and check what you can safely remove to free up space.

2.0.1Latest stable
Qt 6Toolkit
GPL v2Licence
FreeNo ads or fees
Qdirstat main window showing directory tree with subtree percentages and a cushion treemap
/home — 58% of disk
Scan finished in 7 s
Qdirstat analysing a home directory with cache and video folders highlighted
~/ Qdirstat / what-is

What Is Qdirstat?

Qdirstat is a graphical directory statistics tool that answers one stubborn question: where has all my disk space gone? Written in C++ with the Qt framework by Stefan Hundhammer, the original author of KDirStat, it carries the well-loved KDirStat idea forward without depending on any KDE libraries, so it feels at home on GNOME, Xfce, KDE Plasma, Cinnamon or a bare window manager.

Qdirstat combines two views that stay in sync. The upper tree lists folders sorted by size with percentage bars, while the lower treemap draws every file as a shaded rectangle whose area matches its size. Selecting an item in one view highlights it in the other, so a large block in the map leads you straight to the culprit path.

  • developerStefan Hundhammer
  • first_release2016 (project started 2015)
  • latest_stableQdirstat 2.0.1 — Qt 6
  • licenceGNU GPL version 2
  • platformsLinux, BSD, Unix-like, macOS
~/ Qdirstat / features

Qdirstat Features, Laid Out Like Its Own Treemap

Each tile below is sized by how often it matters in daily use, the same way Qdirstat sizes your files. Move the pointer across a tile to see the cushion shading follow you.

31%

Cushion Treemap

Qdirstat renders the entire scanned tree as nested, shaded rectangles. Big files form big blocks, colours reflect file types, and a single click on any block jumps the tree view to that exact file. Version 1.9 refined the rendering further, giving smoother cushions and clearer borders.

18%

Directory Tree with Subtree Bars

Columns for size, percentage, item count, files, subdirectories and last modification time, all sortable, with coloured bars that make the heaviest branch obvious at a glance.

14%

Package View

Qdirstat can group disk usage by installed package on dpkg, rpm and pacman systems, showing which applications occupy the most space and which files sit outside any package.

9%

File Type Statistics

A breakdown by extension and MIME category reveals whether videos, archives, logs or caches dominate a folder.

8%

Cleanup Actions

Configurable actions such as moving to trash, opening a terminal, compressing a folder or running make clean, right from the selection.

7%

Discover Menu

Instant lists of the largest, newest and oldest files, plus files with multiple hard links, broken symlinks and sparse files.

5%

Age & Size Statistics

File age reports by year and month, and size histograms that show how a directory is really composed.

4%

Mounted Filesystems

A df-style overview of used, free and reserved space for every mounted filesystem in one window.

4%

Exclude Rules & Cache Files

Skip noisy folders with exclude rules, or read cache files produced by a script on a remote server.

~/ Qdirstat / how-it-works

How Qdirstat Works

Behind the colourful map sits a straightforward pipeline. Understanding it helps you scan faster and read the results with confidence.

Choose a Directory

Open a folder such as /home, /var or the whole root filesystem. By default Qdirstat stays on the starting filesystem and does not wander into other mount points.

Read the Tree

Qdirstat walks every directory with multiple threads, collecting size, block allocation, owner and timestamps, while honouring your exclude rules.

Aggregate Totals

Sizes roll up from files to parents, so each folder shows its full subtree weight and percentage of the scanned total.

Draw & Act

The treemap is laid out from those totals. Select a block, inspect its path and apply a cleanup action, then refresh only that branch.

~/ Qdirstat / installation

Install Qdirstat on Your System

Most distributions ship Qdirstat in their repositories, so installation is usually a single command. Pick your platform below, copy the commands and run them in a terminal.

bash — Debian, Ubuntu, Mint
# refresh package lists and install Qdirstat
$ sudo apt update
$ sudo apt install qdirstat
# launch it on your home folder
$ qdirstat ~

Repository versions may trail the newest release.

Terminal installing Qdirstat with apt beside the running application
  • Start without root. Scan your own folders as a normal user first; use sudo only when you truly need to read system directories.
  • Prefer your distribution package. It receives updates together with the rest of your system.
  • Build from source for the newest code. The master ZIP carries the latest Qdirstat development work.
~/ Qdirstat / use-cases

Where Qdirstat Earns Its Place

From a crowded laptop to a busy build server, Qdirstat turns guesswork into a short, evidence-based cleanup.

Desktop

The “Disk Full” Warning

Open your home folder and spot forgotten ISO images, duplicated video exports and bloated browser caches within seconds.

Servers

Runaway Logs

Scan /var to locate oversized journal files, rotated logs and stale backups before they halt a production service.

Developers

Build Artefacts

Find heavy node_modules, Rust target folders and container layers, then clean them with a configured action.

Packages

Bloated Installs

Use the package view to rank installed software by size and decide which large suites you can safely remove.

Home Labs

NAS & Containers

Run Qdirstat in Docker to inspect network storage from any browser without installing a desktop on the server.

Audits

Storage Reports

Combine file age statistics and type breakdowns to plan archiving, quotas or migration to a larger drive.

~/ Qdirstat / download

Download Qdirstat Source Package

Get the complete Qdirstat source code as a ZIP archive from the master branch on GitHub. It contains the application, documentation and helper scripts, ready to build on Linux, BSD or macOS.

Format: ZIPBranch: masterLicence: GPL-2.0Price: Free

Prefer a ready binary? Your distribution’s package manager usually offers Qdirstat directly.

Qdirstat application window after scanning a root filesystem
~/ Qdirstat / compatibility

Qdirstat Compatibility and How It Compares

Qdirstat targets Linux, BSD and other Unix-like systems, with macOS builds possible. Here is how it stands against other popular disk usage analysers.

CapabilityQdirstatWinDirStatBaobabncduFilelight
InterfaceQt GUIWindows GUIGTK GUITerminalQt / KDE GUI
Treemap viewYes, cushionYesRings / treeNoRadial rings
Linux supportNativeNoNativeNativeNative
Windows supportVia WSL2NativeNoVia WSLLimited
Package viewdpkg, rpm, pacmanNoNoNoNo
Custom cleanup actionsYesYesNoDelete onlyNo
Headless serversCache files / DockerNoNoYesNo
LicenceGPL v2GPL v2GPLMITGPL / LGPL
Debian & UbuntuArch via AURFedoraopenSUSEFreeBSDGNU GuixDockermacOS (build)Windows (WSL2)
~/ Qdirstat / troubleshooting

Qdirstat Troubleshooting

Most Qdirstat problems trace back to permissions, display servers or mount boundaries. These fixes cover the issues users meet most often.

WARNSome folders show as locked or report “permission denied”

Qdirstat can only read what your user account is allowed to read. Scan your own data as a normal user, and if you must inspect system paths, start it with sudo -E qdirstat / or pkexec, keeping cleanup actions in mind while running with elevated rights.

ERRQdirstat will not start under sudo on Wayland

Graphical programs run as root often cannot connect to a Wayland session. Try sudo -E qdirstat, allow access with xhost +si:localuser:root on XWayland, or simply scan as your own user and elevate only for specific folders.

INFOTotal size is smaller than what df reports

By default Qdirstat does not cross into other mounted filesystems, and excluded or unreadable folders are skipped. Enable “Cross Filesystems” in the settings, check exclude rules, and remember that deleted files still held open by a process consume space without appearing in any directory.

WARNScanning a network share is very slow

Reading metadata over NFS or SMB is limited by latency. Generate a cache file directly on the server with the bundled qdirstat-cache-writer script, copy it to your desktop and open it with “Read Cache File”, or run Qdirstat in Docker on the storage host.

INFOThe package view is missing or empty

The package view needs a supported package manager: dpkg, rpm or pacman. On other systems or inside minimal containers the option has nothing to read. Install Qdirstat on the host itself to inspect installed packages.

ERRBuild fails with missing Qt headers

Install the Qt development packages and zlib headers before running qmake. Recent Qdirstat code targets Qt 6, so use qmake6; older releases such as 1.9 build against Qt 5.

~/ Qdirstat / requirements

Qdirstat System Requirements

Qdirstat is light. Memory use grows with the number of files scanned rather than their size, so the guidance below scales with how large your directory trees are.

Minimum small trees

operating_system
Linux, BSD or another Unix-like system with X11 or Wayland
processor
Any 64-bit or 32-bit CPU supported by your distribution
memory
512 MB free RAM for a few hundred thousand files
disk_space
About 10 MB for the installed application
libraries
Qt (6 for 2.0, 5 for 1.9 and older), zlib

Recommended millions of files

operating_system
A current, supported distribution release
processor
Multi-core CPU for faster parallel directory reads
memory
2 GB or more free RAM for very large filesystems
storage
SSD or NVMe; metadata scans are much quicker than on HDD
extras
Perl for qdirstat-cache-writer; Docker for container use
Qdirstat package view ranking installed packages by disk usage
~/ Qdirstat / safety

Is Qdirstat Safe to Use?

Scanning with Qdirstat is read-only. It looks at file metadata and never changes data until you choose a cleanup action yourself. The source code is public under the GPL, and the application is reviewed and shipped by major distributions.

  • ✓
    Read-only scanning. Collecting statistics never modifies or uploads your files.
  • ✓
    Confirmations before deleting. Destructive actions ask first; prefer “Move to Trash” where possible.
  • ✓
    Open source and auditable. Anyone can inspect the code in the master ZIP before building.
  • ✓
    No telemetry or accounts. Qdirstat works fully offline.
  • ✓
    Be careful as root. Never remove files from /usr, /etc or /boot unless you know exactly what they are.
~/ Qdirstat / pros-cons

Qdirstat Pros and Cons

An honest view of what Qdirstat does brilliantly and where another tool might suit you better.

Pros

  • Clear treemap and tree that stay perfectly synchronised
  • Package and unpackaged-file views unique among GUI analysers
  • Configurable cleanup actions that save repetitive terminal work
  • Free, open source and free of advertising
  • Desktop-agnostic; runs without KDE or GNOME libraries
  • Cache files and Docker image for headless servers

Cons

  • No native Windows build; WSL2 or Docker is required
  • Interface feels dense for complete beginners at first
  • Large scans of tens of millions of files need generous RAM
  • Distribution packages may lag behind the newest release
  • Running as root on Wayland can need extra steps
  • Cleanup actions are powerful, so mistakes are possible
~/ Qdirstat / faqs

Qdirstat Frequently Asked Questions

Qdirstat is used to find out which folders and files take up the most disk space. It scans a directory, sorts everything by size and draws a treemap, making it easy to locate large or forgotten data and clean it up.

Yes. Qdirstat is free and open-source software released under the GNU General Public License version 2. There are no paid editions, advertisements or subscriptions.

Qdirstat is developed by Stefan Hundhammer, who also wrote the original KDirStat for KDE. Community contributors help with features, packaging and the improved treemap rendering.

KDirStat depended on the old KDE 3 libraries. Qdirstat is a rewrite of the same concept using only Qt, so it runs on any desktop environment and adds features such as the package view, file age statistics and the Discover menu.

The latest stable release is Qdirstat 2.0.1, published in November 2026. Version 2.0 introduced Qt 6. Version 1.9 from January 2024 remains common in many distribution repositories.

Qdirstat reads any mounted file system your system can access, including ext4, Btrfs, XFS, ZFS, NTFS and network shares. It simply reads directory metadata through the operating system.

No. Qdirstat works entirely offline, requires no account and contains no telemetry. Scan results stay on your computer unless you deliberately save a cache file and share it.