#disk #disk-usage

bin+lib dusage

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

7 releases

Uses new Rust 2021

new 0.3.2 Sep 24, 2022
0.3.1 Jul 24, 2022
0.3.0 May 22, 2022
0.2.3 Feb 10, 2022
0.0.3 Jan 17, 2022

#783 in Command line utilities

Download history 15/week @ 2022-06-07 4/week @ 2022-06-14 3/week @ 2022-06-21 10/week @ 2022-07-05 20/week @ 2022-07-12 25/week @ 2022-07-19 28/week @ 2022-07-26 23/week @ 2022-08-02 4/week @ 2022-08-09 4/week @ 2022-08-16 11/week @ 2022-08-23 1/week @ 2022-08-30 20/week @ 2022-09-06 21/week @ 2022-09-13 25/week @ 2022-09-20

67 downloads per month

MIT license

27KB
654 lines

dusage

CI CD 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

~3.5MB
~61K SLoC