{"id":13393495,"url":"https://github.com/muesli/duf","last_synced_at":"2025-05-11T03:46:33.613Z","repository":{"id":37016931,"uuid":"297165998","full_name":"muesli/duf","owner":"muesli","description":"Disk Usage/Free Utility - a better 'df' alternative","archived":false,"fork":false,"pushed_at":"2024-07-30T09:50:14.000Z","size":412,"stargazers_count":13329,"open_issues_count":82,"forks_count":414,"subscribers_count":89,"default_branch":"master","last_synced_at":"2025-05-11T03:46:25.523Z","etag":null,"topics":["cli","df","disk-space","disk-usage","filesystem","freebsd","hacktoberfest","linux","macos","openbsd","terminal","tui","user-friendly","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muesli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"muesli"}},"created_at":"2020-09-20T21:22:38.000Z","updated_at":"2025-05-10T18:01:30.000Z","dependencies_parsed_at":"2023-02-19T16:45:51.888Z","dependency_job_id":"a34bbe24-f4a7-448c-ab1c-ea510c641747","html_url":"https://github.com/muesli/duf","commit_stats":{"total_commits":231,"total_committers":32,"mean_commits":7.21875,"dds":"0.47186147186147187","last_synced_commit":"ae480f3d59342a8963ffb7b4a5070a32086314fb"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muesli%2Fduf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muesli%2Fduf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muesli%2Fduf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muesli%2Fduf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muesli","download_url":"https://codeload.github.com/muesli/duf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253514555,"owners_count":21920334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","df","disk-space","disk-usage","filesystem","freebsd","hacktoberfest","linux","macos","openbsd","terminal","tui","user-friendly","windows"],"created_at":"2024-07-30T17:00:54.242Z","updated_at":"2025-05-11T03:46:33.579Z","avatar_url":"https://github.com/muesli.png","language":"Go","readme":"# duf\n\n[![Latest Release](https://img.shields.io/github/release/muesli/duf.svg?style=for-the-badge)](https://github.com/muesli/duf/releases)\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=for-the-badge)](https://pkg.go.dev/github.com/muesli/duf)\n[![Software License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)](/LICENSE)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/muesli/duf/build.yml?style=for-the-badge\u0026branch=master)](https://github.com/muesli/duf/actions)\n[![Go ReportCard](https://goreportcard.com/badge/github.com/muesli/duf?style=for-the-badge)](https://goreportcard.com/report/muesli/duf)\n\nDisk Usage/Free Utility (Linux, BSD, macOS \u0026 Windows)\n\n![duf](/duf.png)\n\n## Features\n\n- [x] User-friendly, colorful output\n- [x] Adjusts to your terminal's theme \u0026 width\n- [x] Sort the results according to your needs\n- [x] Groups \u0026 filters devices\n- [x] Can conveniently output JSON\n\n## Installation\n\n### Packages\n\n#### Linux\n- Arch Linux: `pacman -S duf`\n- Ubuntu 22.04 / Debian unstable: `apt install duf`\n- Nix: `nix-env -iA nixpkgs.duf`\n- Void Linux: `xbps-install -S duf`\n- Gentoo Linux: `emerge sys-fs/duf`\n- [Packages](https://github.com/muesli/duf/releases) in Alpine, Debian \u0026 RPM formats\n\n#### BSD\n- FreeBSD: `pkg install duf`\n- OpenBSD: `pkg_add duf`\n\n#### macOS\n- with [Homebrew](https://brew.sh/): `brew install duf`\n- with [MacPorts](https://www.macports.org): `sudo port selfupdate \u0026\u0026 sudo port install duf`\n\n#### Windows\n- with [Chocolatey](https://chocolatey.org/): `choco install duf`\n- with [scoop](https://scoop.sh/): `scoop install duf`\n\n#### Android\n- Android (via termux): `pkg install duf`\n\n### Binaries\n- [Binaries](https://github.com/muesli/duf/releases) for Linux, FreeBSD, OpenBSD, macOS, Windows\n\n### From source\n\nMake sure you have a working Go environment (Go 1.17 or higher is required).\nSee the [install instructions](https://golang.org/doc/install.html).\n\nCompiling duf is easy, simply run:\n\n    git clone https://github.com/muesli/duf.git\n    cd duf\n    go build\n\n## Usage\n\nYou can simply start duf without any command-line arguments:\n\n    duf\n\nIf you supply arguments, duf will only list specific devices \u0026 mount points:\n\n    duf /home /some/file\n\nIf you want to list everything (including pseudo, duplicate, inaccessible file systems):\n\n    duf --all\n\n### Filtering\n\nYou can show and hide specific tables:\n\n    duf --only local,network,fuse,special,loops,binds\n    duf --hide local,network,fuse,special,loops,binds\n\nYou can also show and hide specific filesystems:\n\n    duf --only-fs tmpfs,vfat\n    duf --hide-fs tmpfs,vfat\n\n...or specific mount points:\n\n    duf --only-mp /,/home,/dev\n    duf --hide-mp /,/home,/dev\n\nWildcards inside quotes work:\n\n    duf --only-mp '/sys/*,/dev/*'\n\n### Display options\n\nSort the output:\n\n    duf --sort size\n\nValid keys are: `mountpoint`, `size`, `used`, `avail`, `usage`, `inodes`,\n`inodes_used`, `inodes_avail`, `inodes_usage`, `type`, `filesystem`.\n\nShow or hide specific columns:\n\n    duf --output mountpoint,size,usage\n\nValid keys are: `mountpoint`, `size`, `used`, `avail`, `usage`, `inodes`,\n`inodes_used`, `inodes_avail`, `inodes_usage`, `type`, `filesystem`.\n\nList inode information instead of block usage:\n\n    duf --inodes\n\nIf duf doesn't detect your terminal's colors correctly, you can set a theme:\n\n    duf --theme light\n\n### Color-coding \u0026 Thresholds\n\nduf highlights the availability \u0026 usage columns in red, green, or yellow,\ndepending on how much space is still available. You can set your own thresholds:\n\n    duf --avail-threshold=\"10G,1G\"\n    duf --usage-threshold=\"0.5,0.9\"\n\n### Bonus\n\nIf you prefer your output as JSON:\n\n    duf --json\n\n## Troubleshooting\n\nUsers of `oh-my-zsh` should be aware that it already defines an alias called\n`duf`, which you will have to remove in order to use `duf`:\n\n    unalias duf\n\n## Feedback\n\nGot some feedback or suggestions? Please open an issue or drop me a note!\n\n* [Twitter](https://twitter.com/mueslix)\n* [The Fediverse](https://mastodon.social/@fribbledom)\n","funding_links":["https://github.com/sponsors/muesli"],"categories":["Go","HarmonyOS","开源类库","Files and Directories","Command Line","Install from Source","Command Line Utilities","工具和库","Open source library","\u003ca name=\"core\"\u003e\u003c/a\u003ecore","Linux System Tools","df","其他","cli","Tools","命令行工具","Other","\u003ca name=\"disk-analyzer\"\u003e\u003c/a\u003eDisk usage analyzers","Misc","Linux生态圈Dev\u0026Ops工具与服务","Command line - Linux","ユーティリティ他","Modern Unix Replacements"],"sub_categories":["Windows Manager","终端工具","Disk Usage","Dependency Management","Storage","Tools","Terminal Tools","File \u0026 Directory Tools","网络服务_其他","Go","Software packages","Learning resources"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuesli%2Fduf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuesli%2Fduf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuesli%2Fduf/lists"}