Display disk usage through KDE with a command?

KDE has some way to display the disk usage way quicker than a du -sh / would do. Probably with caching etc.

Set aside transparent BTRFS compression (not sure if that is calculated in), it is really useful.

is there a way to call for that tool to display the disk usage from the CLI?

use case

I use Filelight

yes but I meant a command, like in a script for example. maybe something using qdbus

it might need to interact with kio or other libraries using C++? There is likely no interface or tool exposed to users

the idea is that when scripting in a desktop environment, it is way more efficient to just get the already collected stats from there, instead of using some ancient unix method to do it again

LLMs suggest a mix of find and stat, which takes forever. Or there is du, which scans everything new, no caching, no index etc.

I use baloo but not on all files. that might be a tool with such an interface exposed, but maybe not either?

Maybe you’re looking for df -hl?

yes, somehow that is instant where du takes a long time!

solves my use case, thanks!