https://github.com/mihaigalos/dusage
💾 A command line disk usage information tool.
https://github.com/mihaigalos/dusage
bash cli command-line command-line-tool commandline-tool df fish rust shell zsh
Last synced: 3 months ago
JSON representation
💾 A command line disk usage information tool.
- Host: GitHub
- URL: https://github.com/mihaigalos/dusage
- Owner: mihaigalos
- License: mit
- Created: 2022-01-14T12:03:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-12T02:24:17.000Z (3 months ago)
- Last Synced: 2025-04-12T03:27:43.616Z (3 months ago)
- Topics: bash, cli, command-line, command-line-tool, commandline-tool, df, fish, rust, shell, zsh
- Language: Rust
- Homepage:
- Size: 255 KB
- Stars: 110
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dusage
[](https://github.com/mihaigalos/dusage/actions/workflows/ci.yaml)
[](https://github.com/mihaigalos/dusage/actions/workflows/cd.yaml)
[](https://github.com/mihaigalos/dusage/actions/workflows/audit.yaml)
[](https://crates.io/crates/dusage)
[](https://github.com/mihaigalos/dusage)A command line disk usage information tool.

## Why?
A better interface for `df`.
## BTW
You might also like [`musage`](https://github.com/mihaigalos/musage).
Both can be i.e. automatically executed upon login via `ssh` to a remote machine by invoking them in the remote's `.bashrc` or `.zshrc`.
## Features
- bargraph with disk and inode usage.
- background: inodes, foreground: disks.
- grouping of filesystems.
- separate coloring of `/`, `/boot` and `/mnt` for easy spotting.
- [log2ram](https://github.com/azlux/log2ram) filesystem displayed last for
easy spotting of log drive usage on Raspberry Pi.
- display of detailed inode usage (similar to `df -i`).
- copy-friendly output (via the `--copy-friendly` flag:```text
Filesystem Size Used Avail Use% Disk / INodes Mounted on
/dev/sdb1 4.6G 270.1M 4.1G 6% â– â– â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡ /boot
/dev/mapper/sdb5_crypt 452.7G 231.6G 198.0G 51% â– â– â– â– â– â– â– â– â– â– â– â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡â–¡ /
```## Installation
### Building from source
```bash
cargo install dusage
```### NetBSD ([Official repositories](https://pkgsrc.se/sysutils/dusage))
```bash
pkgin install dusage
```Or if you prefer to build it from source:
```bash
cd /usr/pkgsrc/sysutils/dusage
make install
```### Using precompiled binaries
Precompiled binaries are available for multiple architectures in [Releases](https://github.com/mihaigalos/dusage/releases).