← Back to tools

duf

A better df alternative with a colorful and user-friendly output

System & Monitoring linuxmacoswindows Go MIT

Description

duf is a modern replacement for the df command. It shows disk usage and free space in a colorful, well-organized table format. It groups filesystems by type and supports JSON output.

Install

homebrewbrew install duf
aptsudo apt install duf
pacmansudo pacman -S duf

AI Summary

A modern df replacement with colorful, organized output. Groups filesystems by type and shows usage, free space, and mount points in a readable table.

Capabilities

  • + Colorful table output grouped by filesystem type
  • + Shows usage bars and percentages
  • + JSON output for scripting
  • + Filter by filesystem type or mount point

Use When

  • Checking disk space across mounted filesystems
  • Want a more readable overview than df

Avoid When

  • x Scripts that parse df output (use df or duf --json)

Usage Patterns

Show all disk usage

duf

Displays colorful table of all mounted filesystems

JSON output for scripting

duf --json

Machine-readable JSON output of filesystem information

Related Tools

View AGENTS.md for duf