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.

OfficeCLI: The AI-Native CLI for Word, Excel, and PowerPoint Automation

OfficeCLI: The AI-Native CLI for Word, Excel, and PowerPoint Automation

June 28, 2026

OfficeCLI is a free, open-source command-line interface designed for AI agents and developers to read, edit, and automate Word, Excel, and PowerPoint files. It operates as a single binary, requiring no Office installation or dependencies. With its built-in rendering and formula engines, OfficeCLI enables high-fidelity document manipulation and visualization in headless environments.

ai-agentclioffice-automation
Agent-Reach: Empower Your AI Agents with Internet Access, Zero API Fees

Agent-Reach: Empower Your AI Agents with Internet Access, Zero API Fees

June 21, 2026

Agent-Reach is a powerful GitHub repository that equips AI agents with the ability to access and search the entire internet, including platforms like Twitter, Reddit, YouTube, and Bilibili. It provides a streamlined CLI experience, eliminating the need for complex API configurations and associated fees. This project ensures your AI agent can "see" and interact with web content effortlessly.

ai-agentagent-infrastructureai-search
ascii-chat: Video Chat in Your Terminal with Audio, Encryption, and Media Support

ascii-chat: Video Chat in Your Terminal with Audio, Encryption, and Media Support

June 4, 2026

ascii-chat is a unique client-server application that enables video chat directly within your terminal, supporting color, audio, and encryption. It allows multiple clients to connect, offers media streaming from files or URLs, and features a robust discovery service for easy connection. Built in C, it's a powerful and versatile tool for terminal enthusiasts.

ascii-chatterminalvideo-chat
Task: A Modern, Cross-Platform Build Tool for Streamlined Workflows

Task: A Modern, Cross-Platform Build Tool for Streamlined Workflows

May 18, 2026

Task is an open-source, cross-platform build tool inspired by Make, designed to simplify and automate modern development workflows. It allows developers to define and run tasks using a simple YAML configuration, offering a powerful and intuitive alternative to traditional build systems. Written in Go, Task ensures fast execution and broad compatibility across various operating systems.

build-tooldevopsgo

Source repository

Open the original repository on GitHub.

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 ❤️