QDirStat(1)
โจ QDirStat(1) โ the directory statistics glow-up โจ
okay so bestie, welcome to the QDirStat manual page โ it lives in the General Commands Manual section of your man command, and it's literally about finding out where all your disk space went. ๐
๐ธ NAME ๐ธ
QDirStat โ Qt-based directory statistics. that's it, that's the name, no cap. ๐
๐ DESCRIPTION ๐
QDirStat is a graphical application that shows you where your disk space has gone and helps you clean it up. it's giving "therapist for your filesystem", fr fr. ๐งนโจ
๐ฆ USAGE ๐ฆ
qdirstat [OPTION]... [<directory-name>]
qdirstat --cache|-c <cache-file-name>
qdirstat pkg:/<pkg-spec>
qdirstat unpkg:/<dir>
๐ OPTIONS ๐
-h|--helpโ shows a summary of the command line options on stdout. lowkey that info might be more up-to-date than this man page, so check it if something looks sus. ๐-s|--slow-updateโ slows down the display updates while it's reading directories. super useful when you're running QDirStat over a remote X11 connection. the exact update interval lives in theSlowUpdateMillisecparameter in the[DirectoryTree]section of the configuration file. default is3000milliseconds (3 seconds). ๐-d|--dont-askโ don't prompt for a directory to read when the program starts, even if no directory was specified on the command line. no questions, just vibes. ๐-c|--cache <cache-file-name>โ reads the content of a directory tree from a cache file. that cache file has to be generated by QDirStat's"Write to Cache File"option or by theqdirstat-cache-writerscript. ๐๏ธ
a file called .qdirstat.cache.gz sitting in the directory that it describes gets automatically picked up and used: a cache file /data/archive/foo/.qdirstat.cache.gz with the content of /data/archive/foo is used automatically when it's found while reading a directory tree containing it. so iconic of it honestly. โจ
๐ NORMAL OPERATION ๐
you start the program without any parameters, and it opens a directory selection box so you can pick an existing directory. or, if you're feeling decisive, you can just specify the path of an existing directory as a command line parameter. main character energy either way. ๐โโ๏ธ
the program then starts reading that directory tree, meaning it recursively traverses that directory tree and reads information for each directory and its subdirectories. ๐ง
the result shows up in a tree view where you can open and close branches. the tree view displays info like the accumulated size of each subtree, the number of items, the number of files, the latest modification time ("mtime") in that subtree, and some more. you can sort the tree by each of those columns. sortable columns? we love to see it. ๐ฅ
you can select one or more items in the tree view to get more detailed information or to start "cleanup actions": move to trash, remove immediately (caution!), create a gzipped tarball from a directory, "make clean", open a file manager window with that directory or start a shell there โ and more. use the context menu (right mouse button) or the "Clean Up" menu in the menu bar (you can "tear off" that menu so it stays open). obsessed. ๐ญ
there are three predefined column layouts L1, L2, L3, where you can switch what columns are displayed and whether or not to display the details panel at the right. ๐ซถ
right-click on a column header to show or hide individual columns, or to switch between automatic column width and a user-defined width (drag the column divider in the header). you can rearrange the order of columns with drag and drop โ but the "Name" column will always remain fixed at the very left side. it's the main character of columns, periodt. ๐
๐ THE TREEMAP ๐
as a secondary view, there's a "treemap" with colored rectangles ("tiles"). the area of each of those tiles corresponds to its size; the larger a tile, the larger the item. so you can spot a large file buried deep down in the directory hierarchy easily. it's giving treasure map but for disk hogs. ๐บ๏ธ
the color of each tile corresponds to its type ("MIME category"). there are a number of predefined categories like images (photos etc.), videos, music etc.; they can be configured in the configuration dialog (menu "Edit" -> "Configure QDirStat"). ๐จ
๐ PKG URLS / PACKAGES VIEW ๐
specifying a pkg:/ URL at the command line starts the packages view, which groups files by the software package they belong to. ๐ฆ
the package specification in the pkg:/ URL is case insensitive.
some heuristics are used to determine what mode to use: the default is "starts with", but if the search pattern contains typical regexp special characters, it interprets the pattern as a regular expression.
if it detects just "*" (not ".*") or "?", it uses wildcard mode.
if the first character is "=", it uses exact matching.
qdirstat pkg:/chrom
this shows all packages starting with "chrom" or "Chrom" or "CHROM".
qdirstat pkg:/=emacs
this shows only package "emacs", not "emacs25" or any other one starting with "emacs".
qdirstat "pkg:/*gtk*"
this shows all packages that have "gtk" somewhere in their name.
notice that you have to protect the "*" wildcards from the shell by escaping them with quotes. ๐
qdirstat "pkg:/.*qt[45].*"
this shows all Qt4 or Qt5 packages.
qdirstat "pkg:/(firefox|mozilla|chrome|chromium|opera)"
this shows all the well-known browsers on the system. notice that regular expressions use a partial match, so use the "^" and "$" anchors when appropriate.
๐ UNPKG URLS / UNPACKAGED FILES VIEW ๐
specifying an unpkg:/ URL at the command line starts the "unpackaged files" view: this reads the specified directory and ignores files that are owned by an installed software package. โจ
some well-known directories that are known to contain only unpackaged files are excluded by default, and some file types are ignored by default:
/homeโ user home directories/rootโ home directory of the root user/tmpโ directory for temporary files/varโ variable data for all kinds of software/usr/lib/sysimage/rpmโ RPM database/usr/localโ locally installed software*.pycโ compiled Python files
this list can be modified when starting the unpackaged files view from the menu. starting the view from the command line uses the same settings that were used last time when using the menu. ๐ง
qdirstat unpkg:/
this shows the unpackaged files of the complete root filesystem.
qdirstat unpkg:/usr/share
this shows the unpackaged files of /usr/share.
๐ FILES ๐
~/.config/QDirStat/QDirStat-cleanup.confโ cleanup actions configuration~/.config/QDirStat/QDirStat-exclude.confโ exclude rules configuration~/.config/QDirStat/QDirStat-mime.confโ MIME categories configuration~/.config/QDirStat/QDirStat.confโ general configuration~/.config/QDirStat/bookmarks.txtโ bookmarks (plain text, one per line)/tmp/qdirstat-$USER/qdirstat.logโ current / last log file/tmp/qdirstat-$USER/qdirstat-*.oldโ previous log files**/.qdirstat.cache.gzโ auto-used cache file
it is safe to delete any or all of the configuration files; the next program start will restore them with default settings. so if you ever fumble, it's fine bestie, it heals itself. ๐
the configuration files can safely be edited while QDirStat is not running. many parameters can be accessed via GUI, but some (the more arcane ones) can only be changed by editing a configuration file manually. ๐ฎ
๐ PROJECT HOME PAGE ๐
this section is literally empty in the original too, bestie. leaving it exactly as it is โ no invented lore, iykyk. ๐
and that's the whole page!! ๐ this was page QDirStat(1) from the General Commands Manual, and yes, the footer at the bottom of the original is just the page name and manual name again โ no version number, no date, nothing extra hiding down there. so that's your cue to close the terminal tab and go clean up some disk space. slay, bye ๐ซถโจ๐ธ
๐ฆ where this page comes from
- debian trixie: qdirstat 1.9-1+b1 ยท GPL-2.0-or-later
- fedora 43: qdirstat 1.9-6.fc43 ยท GPL-2.0-only
- fedora 43: qdirstat 2.0-1.fc43 ยท GPL-2.0-only
- fedora 44: qdirstat 2.0-1.fc44 ยท GPL-2.0-only
- nixos 26.05: qdirstat 2.0
- nixpkgs unstable: qdirstat 2.0
- opensuse-leap 16.0: qdirstat 1.9-bp160.1.11 ยท GPL-2.0-only
- opensuse-leap 16.0: qdirstat 1.9-bp160.1.11 ยท GPL-2.0-only
- opensuse-leap 16.0: qdirstat 1.9-bp160.1.11 ยท GPL-2.0-only
- opensuse-leap 16.0: qdirstat 1.9-bp160.1.11 ยท GPL-2.0-only
- ubuntu noble: qdirstat 1.9-1build2 ยท GPL-2.0-or-later
- ubuntu questing: qdirstat 1.9-1build2
- ubuntu resolute: qdirstat 2.0-1 ยท GPL-2.0-or-later
- ubuntu stonking: qdirstat 2.0-1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms