{"name":"duf: A Modern and User-Friendly Disk Usage/Free Utility","description":"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.","github":"https://github.com/muesli/duf","url":"https://osrepos.com/repo/muesli-duf","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/muesli-duf","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/muesli-duf.md","json":"https://osrepos.com/repo/muesli-duf.json","topics":["cli","disk-usage","df-alternative","system-utility","Go","linux","macos","windows"],"keywords":["cli","disk-usage","df-alternative","system-utility","Go","linux","macos","windows"],"stars":null,"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.","content":"## Introduction\n\nduf 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.\n\n## Installation\n\nInstalling 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:\n\nbash\npacman -S duf         # Arch Linux\napt install duf       # Ubuntu (22.04+) / Debian (12+)\nbrew install duf      # macOS with Homebrew\nchoco install duf     # Windows with Chocolatey\n\n\nYou can also install from source if you have a working Go environment (Go 1.23 or higher is required):\n\nbash\ngit clone https://github.com/muesli/duf.git\ncd duf\ngo build\n\n\n## Examples\n\nduf is designed for ease of use. Here are some examples to get you started:\n\n**Basic Usage:**\n\nbash\nduf\n\n\n**List specific devices or mount points:**\n\nbash\nduf /home /some/file\n\n\n**List everything, including pseudo and inaccessible file systems:**\n\nbash\nduf --all\n\n\n**Filter to show only local and network filesystems:**\n\nbash\nduf --only local,network\n\n\n**Sort the output by usage:**\n\nbash\nduf --sort usage\n\n\n**Output results as JSON:**\n\nbash\nduf --json\n\n\n## Why use duf?\n\nWhile the traditional `df` command is a staple for system administrators, duf offers several compelling reasons to switch:\n\n*   **Enhanced Readability**: Its colorful and user-friendly output makes it much easier to quickly grasp disk space information compared to `df`.\n*   **Adaptable Interface**: duf automatically adjusts to your terminal's theme and width, providing an optimal viewing experience.\n*   **Powerful Filtering and Sorting**: Easily filter by device type, filesystem, or mount point, and sort results by various criteria like size, usage, or inodes.\n*   **Cross-Platform Support**: Works seamlessly across Linux, BSD, macOS, and Windows, providing a consistent experience.\n*   **JSON Output**: For scripting and automation, the `--json` flag provides structured data that's easy to parse.\n\n## Links\n\nExplore duf further through these official links:\n\n*   **GitHub Repository**: [https://github.com/muesli/duf](https://github.com/muesli/duf)\n*   **GoDoc Reference**: [https://pkg.go.dev/github.com/muesli/duf](https://pkg.go.dev/github.com/muesli/duf)\n*   **Latest Releases**: [https://github.com/muesli/duf/releases](https://github.com/muesli/duf/releases)","metrics":{"detailViews":2,"githubClicks":4},"dates":{"published":null,"modified":"2025-10-11T21:02:45.000Z"}}