talira

Disk Usage/Free Utility: a better 'df' alternative

open sourceMITself-hostablefree

duf is a command-line disk usage and free space utility, a friendlier replacement for df. It shows mounted devices in colourful tables grouped into local, network, FUSE and special filesystems, colour-codes usage against thresholds you can set, and adapts to your terminal's theme and width. You can sort by any column, choose columns, filter by table, filesystem type or mount point (with wildcards), list inodes instead of blocks, or output JSON. Written in Go for Linux, the BSDs, macOS, Windows and Android (Termux), and packaged by most Linux distributions, Homebrew, MacPorts, Chocolatey and Scoop. MIT.

Problems it solves

  • df output is hard to read and I want a clearer view of disk space
  • see free space on all my mounted drives in the terminal at a glance
  • get disk usage of mounted filesystems as JSON for a script
  • hide pseudo and loop filesystems from disk free output

Features

  • colourful tables grouped by local, network, FUSE and special devices
  • usage colour-coded against configurable thresholds
  • adapts to terminal theme and width
  • sort by any column and choose columns
  • filter by table, filesystem or mount point, with wildcards
  • inode view
  • JSON output

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what duf does.

  1. dust du + rust = dust. Like du but more intuitive.

Compare duf with the top 3