2.5 KiB
2.5 KiB
rdu - another disk usage utility
Installation
Binaries
rdu has prebuilt binaries for Linux and macOS on amd64 and arm64.
You can install it easily by using these commands:
wget https://git.rznet.fr/tchivert/rdu/releases/download/latest/rdu-<os>-<arch> -O /usr/local/bin/rdu
chmod +x /usr/local/bin/rdu
Exemple for an amd64 linux machine:
wget https://git.rznet.fr/tchivert/rdu/releases/download/latest/rdu-linux-amd64 -O /usr/local/bin/rdu
chmod +x /usr/local/bin/rdu
Debian-based distributions
You can install rdu by downloading directly the latest .deb:
wget https://git.rznet.fr/tchivert/rdu/releases/download/latest/rdu-amd64.deb
sudo dpkg -i rdu-amd64.deb
Usage
Usage: rdu [-h] [-v] [-x] [-n] [-s] [-d <size>] [-t <threads>] [-k <top>] <dir>
Options:
-h Show this help message
-v Verbose
-x Scan current filesystem only
-n Non-interactive
-s Silent mode (no output)
-d Minimum dir size (default: 0, no filter)
-t Max threads
-k Top N output results (default: 8)
It can be used interactively (like in the screenshot above), or non-interactively (-n flag) to output a summary of the results.
For example:
$ rdu -x -n /var/www/mirror.rznet.fr
Scanning /var/www/mirror.rznet.fr...
Scanned 31681 items
Directories:
106.9G /archlinux/pool/packages
16.6G /endeavouros/iso
8.1G /archlinux/iso
6.1G /archlinux/images
2.7G /archlinux/iso/2025.11.01
2.7G /archlinux/iso/2025.10.01
2.7G /archlinux/iso/2025.09.01
1.2G /archlinux/iso/2025.11.01/arch
Files:
3.0G /endeavouros/iso/EndeavourOS_Mercury-2025.02.08.iso
2.9G /endeavouros/iso/EndeavourOS_Mercury-Neo-2025.03.19.iso
2.9G /archlinux/pool/packages/texlive-doc-2025.2-2-any.pkg.tar.zst
2.8G /archlinux/pool/packages/dotnet-source-built-artifacts-6.0-6.0.36.sdk136-2-x86_64.pkg.tar.zst
2.8G /endeavouros/iso/EndeavourOS_Endeavour_neo-2024.09.22.iso
2.7G /endeavouros/iso/EndeavourOS_Endeavour-2024.06.25.iso
2.7G /endeavouros/iso/EndeavourOS_Gemini-2024.04.20.iso
2.6G /endeavouros/iso/EndeavourOS_Galileo-Neo-2024.01.25.iso
Extensions:
107.6G .zst
20.8G .iso
6.1G .qcow2
2.8G .sfs
667.6M .img
391.0M .wsl
60.1M .old
59.0M .gz
Total: 138.5G (31681 items)
Acknowledgements
- gdamore/tcell - Terminal UI library
License
This project is licensed under the MIT License. See the LICENSE file for more information.
