QDirStat: Efficient Disk Space Analysis and Cleanup for Linux and macOS
Summary
QDirStat is a powerful, Qt-based graphical application designed to help you understand where your disk space has gone and efficiently clean it up. It is the modern, KDE-independent successor to the original KDirStat, developed by the same author. QDirStat provides an intuitive interface for visualizing disk usage, making it an essential tool for system maintenance on Linux, BSD, Unix-like systems, and macOS.
Repository Info
Tags
Click on any tag to explore related repositories
Introduction
QDirStat is a powerful, Qt-based graphical application designed to help you understand where your disk space has gone and efficiently clean it up. It is the modern, KDE-independent successor to the original KDirStat, developed by the same author. QDirStat provides an intuitive interface for visualizing disk usage, making it an essential tool for system maintenance on Linux, BSD, Unix-like systems, and macOS.
Installation
For most mainstream Linux and BSD distributions, QDirStat can be installed directly from your normal package manager. For example:
sudo apt-get install build-essential qtbase6-dev qt6-5compat-dev zlib1g-dev
SUSE:
sudo zypper install -t pattern devel_C_C++
sudo zypper install qt6-widgets-devel qt6-qt5compat-devel zlib-devel
For macOS users, ready-made binaries are available via Jesus Herrera's GitHub repository or Homebrew. Windows users can leverage Docker containers to run QDirStat.
To build from source, navigate to the QDirStat source directory and enter these commands:
qmake6
make
sudo make install
Examples
QDirStat's main interface presents a clear overview of your disk usage. The upper half features a traditional tree view, displaying directories and their accumulated sizes, while the lower half shows a colored treemap. In the treemap, larger rectangles represent larger files, allowing for quick visual identification of disk space hogs. You can click on any item in either view to locate it in the other, then use configurable cleanup actions, such as moving files to trash or deleting them immediately, to free up space. The application also supports multi-selection in both the tree and treemap for efficient bulk operations.
Why Use QDirStat
QDirStat stands out with a rich set of features designed for comprehensive disk analysis and management. It offers multi-selection in both the tree and treemap views, a highly requested feature, enabling users to manage multiple items simultaneously. Its package manager integration allows you to see which software package a system file belongs to, or identify unpackaged files. Beyond basic usage, QDirStat provides specialized views for file type statistics, file size histograms, and file age statistics, offering deeper insights into your data. With configurable cleanup actions, customizable treemap colors, and efficient memory usage, QDirStat is a highly adaptable and powerful tool. It also supports reading and writing cache files, which is particularly useful for analyzing remote servers or large, infrequently changing directories.
Links
- GitHub Repository: shundhammer/qdirstat
- Official Documentation: Explore the QDirStat documentation for in-depth guides and explanations.
- Related Software & Comparisons: Learn about its predecessors and alternatives, including benchmarks, on the Related Software section of the README.
- macOS Binaries: Find pre-built packages for macOS on Jesus Herrera's GitHub.
- Docker Containers: Utilize QDirStat on other platforms via jlesage/qdirstat Docker.