QDIRSTAT-CACHE-WRITER(1)
π NAME π
qdirstat-cache-writer β a lil script bestie that writes QDirStat cache files from cron jobs π
πΈ Usage πΈ
qdirstat-cache-writer [-ldvh] <directory> [<cache-file-name>]
So basically you hand it a <directory> and optionally a <cache-file-name>, and it does its thing. If you don't pass a <cache-file-name>, it defaults to .qdirstat.cache.gz sitting inside <directory>. Periodt. π
And if your <cache-file-name> ends with .gz, it gets compressed with gzip β cute, right? And heads up: qdirstat can read gzipped and plain text cache files, so no stress either way. β¨
β¨ OPTIONS β¨
-lβ long format: always add the full path, even for plain files π«Ά-mβ scan mounted file systems (aka cross file system boundaries, live a little) π¦-vβ verbose, so it tells you everything going on-dβ debug mode π-hβ help (this very usage message, iconic) π
π DESCRIPTION π
OK so here's the tea: QDirStat can read all its info from cache files, and that is so much faster than the alternative. The alternative being: reading every single directory in a tree and getting detailed info (size, type, last modification time) for each file and directory using the opendir() / readdir() and lstat() system calls, one by one. Exhausting. π
Now, QDirStat can totally write those cache files itself β it's the "Write Cache File..." option in the "File" menu, iykyk. But the whole point of cache files is being able to do it in the background while the user isn't sitting there waiting, like in a cron job running in the middle of the night π. And QDirStat itself literally cannot do that, because it's a KDE program, which means it's an X program, which means it needs access to an X display β and cron does not provide that. So... yeah. That's why this script exists. No cap. π
π AUTHOR π
This manual page was written by Patrick MatthΓ€i <pmatthaei@debian.org> for qdirstat. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. π«Ά
And that's the whole vibe check, bestie β this page is from the General Commands Manual, dated July 2017. Go forth and cron responsibly. ππβ¨
π¦ where this page comes from
- debian bookworm: qdirstat 1.8.1-3 Β· GPL-2.0-or-later
- 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 jammy: qdirstat 1.8-1 Β· GPL-2.0-or-later
- 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