duf: A Modern and User-Friendly Disk Usage/Free Utility

This repository profile is provided by osrepos.com, an open source repository discovery platform.

duf: A Modern and User-Friendly Disk Usage/Free Utility

Summary

duf is a modern, user-friendly command-line utility that serves as an enhanced alternative to the traditional 'df' command. It provides colorful, adaptable output, adjusting to your terminal's theme and width, and includes features like sorting, grouping, and filtering. Available across Linux, BSD, macOS, and Windows, duf simplifies disk space monitoring with its intuitive interface and convenient JSON output.

Repository Information

Analyzed by OSRepos on October 11, 2025

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

duf is a modern and user-friendly command-line utility designed to replace the traditional df command. Written in Go, it offers a visually appealing and highly functional way to inspect disk usage and free space across various operating systems, including Linux, BSD, macOS, and Windows. Key features include colorful, adaptable output that adjusts to your terminal, flexible sorting and filtering options, and the ability to output data in JSON format for scripting.

Installation

Installing duf is straightforward, with pre-built binaries and package manager support available for most major operating systems. For detailed instructions, please refer to the official GitHub repository's README. Below are some common installation methods:

pacman -S duf         # Arch Linux
apt install duf       # Ubuntu (22.04+) / Debian (12+)
brew install duf      # macOS with Homebrew
choco install duf     # Windows with Chocolatey

You can also install from source if you have a working Go environment (Go 1.23 or higher is required):

git clone https://github.com/muesli/duf.git
cd duf
go build

Examples

duf is designed for ease of use. Here are some examples to get you started:

Basic Usage:

duf

List specific devices or mount points:

duf /home /some/file

List everything, including pseudo and inaccessible file systems:

duf --all

Filter to show only local and network filesystems:

duf --only local,network

Sort the output by usage:

duf --sort usage

Output results as JSON:

duf --json

Why use duf?

While the traditional df command is a staple for system administrators, duf offers several compelling reasons to switch:

  • Enhanced Readability: Its colorful and user-friendly output makes it much easier to quickly grasp disk space information compared to df.
  • Adaptable Interface: duf automatically adjusts to your terminal's theme and width, providing an optimal viewing experience.
  • Powerful Filtering and Sorting: Easily filter by device type, filesystem, or mount point, and sort results by various criteria like size, usage, or inodes.
  • Cross-Platform Support: Works seamlessly across Linux, BSD, macOS, and Windows, providing a consistent experience.
  • JSON Output: For scripting and automation, the --json flag provides structured data that's easy to parse.

Links

Explore duf further through these official links:

Related repositories

Similar repositories that may be relevant next.

goose: Your Native Open Source AI Agent for Code and Workflows

goose: Your Native Open Source AI Agent for Code and Workflows

August 9, 2026

goose is an open source, extensible AI agent designed to run natively on your machine, offering capabilities beyond simple code suggestions. It supports installation, execution, editing, and testing with a wide range of Large Language Models. Built in Rust, goose provides a desktop app, CLI, and API, making it a versatile tool for various tasks from coding to data analysis.

ai-agentsrustdeveloper-tools
Destructive Command Guard (dcg): Protecting AI Agents from Dangerous Commands

Destructive Command Guard (dcg): Protecting AI Agents from Dangerous Commands

July 11, 2026

The Destructive Command Guard (dcg) is a high-performance hook designed to prevent AI coding agents from executing dangerous git and shell commands. Built in Rust, dcg intercepts and blocks catastrophic operations like `git reset --hard` or `rm -rf`, offering clear explanations and safer alternatives. It provides a crucial safety layer for developers working with tools like Claude Code, Codex CLI, and GitHub Copilot.

ai-agentsclideveloper-tools
Awesome Shell: A Curated List of Command-Line Tools and Resources

Awesome Shell: A Curated List of Command-Line Tools and Resources

July 11, 2026

Awesome Shell is an extensive, curated list of essential command-line frameworks, toolkits, guides, and gizmos. It serves as a comprehensive resource for anyone looking to enhance their terminal experience, offering tools for productivity, customization, development, and system management.

awesome-listshellcli
Zero: The AI Coding Agent for Your Local Terminal

Zero: The AI Coding Agent for Your Local Terminal

July 6, 2026

Zero is an innovative AI coding agent designed for your local terminal, offering powerful capabilities to inspect repositories, edit files, run commands, and utilize browser/terminal helpers. It provides durable local sessions while giving users full control over the AI model and permission levels. This tool empowers developers with a customizable and secure AI assistant directly within their development environment.

aiai-agentcli

Source repository

Open the original repository on GitHub.

13 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️