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.

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, 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.
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.
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.
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.
File Type Statistics
A breakdown by extension and MIME category reveals whether videos, archives, logs or caches dominate a folder.
Cleanup Actions
Configurable actions such as moving to trash, opening a terminal, compressing a folder or running make clean, right from the selection.
Discover Menu
Instant lists of the largest, newest and oldest files, plus files with multiple hard links, broken symlinks and sparse files.
Age & Size Statistics
File age reports by year and month, and size histograms that show how a directory is really composed.
Mounted Filesystems
A df-style overview of used, free and reserved space for every mounted filesystem in one window.
Exclude Rules & Cache Files
Skip noisy folders with exclude rules, or read cache files produced by a script on a remote server.
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.
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.
# 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.
# Qdirstat is packaged in the AUR; use an AUR helper $ yay -S qdirstat # or build manually with makepkg $ git clone https://aur.archlinux.org/qdirstat.git $ cd qdirstat && makepkg -si
Always review the PKGBUILD before building.
# install Qdirstat from the Fedora repositories $ sudo dnf install qdirstat $ qdirstat
On RHEL clones, enable EPEL first if needed.
# Qdirstat is in the main openSUSE repositories $ sudo zypper install qdirstat $ qdirstat
Newer builds are also published on the openSUSE Build Service.
# unpack the downloaded master.zip, then build with qmake $ unzip qdirstat-master.zip && cd qdirstat-master $ qmake6 && make -j"$(nproc)" $ sudo make install
Needs a C++ compiler, Qt 6 development files and zlib.
# run Qdirstat in a browser-accessible container $ docker run -d --name=qdirstat -p 5800:5800 \ -v /docker/appdata/qdirstat:/config:rw \ -v /home/user:/storage:ro jlesage/qdirstat # then open http://localhost:5800
Community image; the storage mount is read-only here.
- Start without root. Scan your own folders as a normal user first; use
sudoonly 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.
Where Qdirstat Earns Its Place
From a crowded laptop to a busy build server, Qdirstat turns guesswork into a short, evidence-based cleanup.
The “Disk Full” Warning
Open your home folder and spot forgotten ISO images, duplicated video exports and bloated browser caches within seconds.
Runaway Logs
Scan /var to locate oversized journal files, rotated logs and stale backups before they halt a production service.
Build Artefacts
Find heavy node_modules, Rust target folders and container layers, then clean them with a configured action.
Bloated Installs
Use the package view to rank installed software by size and decide which large suites you can safely remove.
NAS & Containers
Run Qdirstat in Docker to inspect network storage from any browser without installing a desktop on the server.
Storage Reports
Combine file age statistics and type breakdowns to plan archiving, quotas or migration to a larger drive.
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.
Prefer a ready binary? Your distribution’s package manager usually offers Qdirstat directly.

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.
| Capability | Qdirstat | WinDirStat | Baobab | ncdu | Filelight |
|---|---|---|---|---|---|
| Interface | Qt GUI | Windows GUI | GTK GUI | Terminal | Qt / KDE GUI |
| Treemap view | Yes, cushion | Yes | Rings / tree | No | Radial rings |
| Linux support | Native | No | Native | Native | Native |
| Windows support | Via WSL2 | Native | No | Via WSL | Limited |
| Package view | dpkg, rpm, pacman | No | No | No | No |
| Custom cleanup actions | Yes | Yes | No | Delete only | No |
| Headless servers | Cache files / Docker | No | No | Yes | No |
| Licence | GPL v2 | GPL v2 | GPL | MIT | GPL / LGPL |
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 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

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,/etcor/bootunless you know exactly what they are.
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 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.
On Linux, install Qdirstat from your distribution repository with apt, dnf, zypper or an AUR helper. For the newest code, use the download button on this page to get the master-branch ZIP and build it yourself.
Open a terminal and run sudo apt update followed by sudo apt install qdirstat. Then launch it from the application menu or by typing qdirstat.
Qdirstat is available in the AUR as qdirstat, with qdirstat-git for the development version. Install it with an AUR helper such as yay -S qdirstat or build it manually with makepkg -si.
There is no official native Windows build. Windows users can run the Linux version under WSL2 with WSLg, use the Docker image through a browser, or choose WinDirStat, which follows the same treemap idea.
Yes. Community images such as jlesage/qdirstat run Qdirstat in a container and expose its interface in a web browser, typically on port 5800. Mount the folders you want to analyse under /storage.
Qdirstat can be built on macOS with Qt, and the project lists macOS as a target platform, but Linux and BSD receive the most testing and packaging attention.
Install a C++ compiler, the Qt development packages and zlib headers, unpack the source ZIP, then run qmake (or qmake6), make and sudo make install inside the folder.
Each rectangle is a file and its area matches the file size. Rectangles of the same directory are grouped together, and colours indicate file types. Click any rectangle to select that file in the tree view above.
Yes, through cleanup actions such as Move to Trash or Delete. Every action is optional and can be configured, and destructive ones ask for confirmation, so nothing is removed unless you request it.
Only when you need to read system directories your user cannot access. Running as a normal user is safer because cleanup actions then cannot touch protected system files.
Qdirstat stays on one file system by default and skips excluded or unreadable folders. Files that were deleted but are still held open by a program also use space without appearing in any directory.
Yes. Run the included qdirstat-cache-writer script on the server, copy the resulting cache file to your desktop and open it in Qdirstat, or run Qdirstat inside Docker on the server.
Yes. Scanning is read-only and the code is open source and packaged by major distributions. The only risk comes from deleting files carelessly, so review selections before running a cleanup action.
Scan only the folder you care about, add exclude rules for directories you never need to see, use an SSD, and use cache files instead of scanning large network shares over a slow connection.