#disk #command-line #command-line-tool #inode #disk-usage #information

bin+lib dusage

💾 A command line disk usage information tool: disk usage (foreground), inodes (background)

12 releases

0.4.0 Dec 19, 2024
0.3.6 Jul 7, 2023
0.3.5 Feb 19, 2023
0.3.3 Oct 2, 2022
0.2.3 Feb 10, 2022

#586 in Filesystem

Download history 26/week @ 2024-09-18 11/week @ 2024-09-25 1/week @ 2024-10-02 2/week @ 2024-10-09 3/week @ 2024-10-30 6/week @ 2024-11-06 6/week @ 2024-11-13 19/week @ 2024-11-20 1/week @ 2024-11-27 5/week @ 2024-12-04 4/week @ 2024-12-11 134/week @ 2024-12-18 7/week @ 2024-12-25

150 downloads per month

MIT license

25KB
596 lines

dusage

CI CD Security Audit crates.io LoC

A command line disk usage information tool.

dusage_disks dusage_inodes

Why?

A better interface for df.

BTW

You might also like 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 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:
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

cargo install dusage

NetBSD (Official repositories)

pkgin install dusage

Or if you prefer to build it from source:

cd /usr/pkgsrc/sysutils/dusage
make install

Using precompiled binaries

Precompiled binaries are available for multiple architectures in Releases.

Dependencies

~2.6–9MB
~87K SLoC