89 lines
2.3 KiB
Markdown
89 lines
2.3 KiB
Markdown
# rdu - another disk usage utility
|
|
|
|

|
|
|
|
## Installation
|
|
|
|
rdu has prebuilt binaries for Linux and macOS on amd64 and arm64.
|
|
|
|
You can install it easily by using these commands:
|
|
|
|
```bash
|
|
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:
|
|
|
|
```bash
|
|
wget https://git.rznet.fr/tchivert/rdu/releases/download/latest/rdu-linux-amd64 -O /usr/local/bin/rdu
|
|
chmod +x /usr/local/bin/rdu
|
|
```
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
Usage: rdu [-h] [-v] [-x] [-n] [-d <size>] [-t <threads>] [-k <top>] <dir>
|
|
Options:
|
|
-h Show this help message
|
|
-v Verbose
|
|
-x Scan current filesystem only
|
|
-n Non-interactive
|
|
-d Minimum directory size
|
|
-t Max threads
|
|
-k Top N results
|
|
```
|
|
|
|
It can be used interactively (like in the screenshot above), or non-interactively (-n flag) to output a summary of the results.
|
|
|
|
For example:
|
|
|
|
```bash
|
|
$ rdu -x -n /var/www/mirror.rznet.fr
|
|
Scanning /var/www/mirror.rznet.fr...
|
|
|
|
Scanned 30782 items
|
|
|
|
Directories:
|
|
|
|
87.1G /var/www/mirror.rznet.fr/archlinux/pool/packages
|
|
2.2G /var/www/mirror.rznet.fr/archlinux/iso/2024.08.01
|
|
2.1G /var/www/mirror.rznet.fr/archlinux/iso/2024.07.01
|
|
2.1G /var/www/mirror.rznet.fr/archlinux/iso/2024.06.01
|
|
956.7M /var/www/mirror.rznet.fr/archlinux/iso/2024.08.01/arch
|
|
952.1M /var/www/mirror.rznet.fr/archlinux/images/v20240815.255016
|
|
951.7M /var/www/mirror.rznet.fr/archlinux/images/v20240801.250900
|
|
949.7M /var/www/mirror.rznet.fr/archlinux/iso/2024.07.01/arch
|
|
|
|
Files:
|
|
|
|
2.8G dotnet-source-built-artifacts-6.0-6.0.32.sdk132-1-x86_64.pkg.tar.zst
|
|
2.7G EndeavourOS_Endeavour-2024.06.25.iso
|
|
2.7G EndeavourOS_Gemini-2024.04.20.iso
|
|
2.6G intel-oneapi-basekit-2024.1.0.596-3-x86_64.pkg.tar.zst
|
|
2.6G EndeavourOS_Galileo-Neo-2024.01.25.iso
|
|
2.5G texlive-doc-2024.2-2-any.pkg.tar.zst
|
|
2.4G Endeavouros-Galileo-11-2023.iso
|
|
1.9G EndeavourOS_Cassini_neo_22_12.iso
|
|
|
|
Extensions:
|
|
|
|
87.7G .zst
|
|
63.8G .iso
|
|
5.6G .qcow2
|
|
2.3G .sfs
|
|
423.8M .img
|
|
47.5M .gz
|
|
46.7M .old
|
|
38.0M none
|
|
|
|
Total: 87.1G (30782 items)
|
|
```
|
|
|
|
## Acknowledgements
|
|
|
|
- [gdamore/tcell](https://github.com/gdamore/tcell/) - Terminal UI library
|
|
|
|
## License
|
|
|
|
This project is licensed under the MIT License. See the [LICENSE](https://git.rznet.fr/tchivert/rdu/src/branch/main/LICENSE) file for more information. |