{"id":13526525,"url":"https://github.com/chenquan/diskusage","last_synced_at":"2025-04-12T19:48:53.396Z","repository":{"id":52883872,"uuid":"521072486","full_name":"chenquan/diskusage","owner":"chenquan","description":"💥A tool for showing disk usage(Linux, MacOS and Windows), it is a very fast utility to find largest directories or files.","archived":false,"fork":false,"pushed_at":"2025-04-10T14:21:27.000Z","size":848,"stargazers_count":291,"open_issues_count":3,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T19:48:46.901Z","etag":null,"topics":["cli","command-line","disk","disk-space","disk-usage","diskusage","file","go","golang","linux","macos","tool","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chenquan.png","metadata":{"files":{"readme":"README-CN.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-08-04T00:30:29.000Z","updated_at":"2025-04-10T14:21:25.000Z","dependencies_parsed_at":"2023-02-17T12:46:08.900Z","dependency_job_id":"481d4bf7-6ec0-486a-aee5-d856bc61e555","html_url":"https://github.com/chenquan/diskusage","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenquan%2Fdiskusage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenquan%2Fdiskusage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenquan%2Fdiskusage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenquan%2Fdiskusage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenquan","download_url":"https://codeload.github.com/chenquan/diskusage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625501,"owners_count":21135513,"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","command-line","disk","disk-space","disk-usage","diskusage","file","go","golang","linux","macos","tool","windows"],"created_at":"2024-08-01T06:01:31.031Z","updated_at":"2025-04-12T19:48:53.370Z","avatar_url":"https://github.com/chenquan.png","language":"Go","readme":"# diskusage\n\n[![Release](https://img.shields.io/github/v/release/chenquan/diskusage.svg?style=flat-square)](https://github.com/chenquan/diskusage)\n[![Download](https://goproxy.cn/stats/github.com/chenquan/diskusage/badges/download-count.svg)](https://github.com/chenquan/diskusage)\n[![GitHub](https://img.shields.io/github/license/chenquan/diskusage)](LICENSE)\n\n[English](README.md) | 简体中文\n\n💥一个显示磁盘使用情况的工具。（Linux、MacOS 和 Windows）\n\n![](image/linux-pipe-more.png)\n![](image/only-dir.png)\n![](image/interactive.png)\n\n## 😜安装\n\n```shell\ngo install github.com/chenquan/diskusage@latest\n```\n\n或者 [下载](https://github.com/chenquan/diskusage/releases).\n\n## 👏如何使用\n\n```\n$ diskusage -h\nA tool for showing disk usage.\n\nGitHub: https://github.com/chenquan/diskusage\nIssues: https://github.com/chenquan/diskusage/issues\n\nUsage:\n  diskusage [flags]\n\nExamples:\n1.The maximum display unit is GB: diskusage -u G\n2.Only files named doc or docx are counted:\n  a.diskusage -t doc,docx\n  b.diskusage -f \".+\\.(doc|docx)$\"\n3.Supports color output to pipeline:\n  a.diskusage -c always | less -R\n  b.diskusage -c always | more\n4.Displays a 2-level tree structure: diskusage -d 2\n5.Specify the directory /usr: diskusage --dir /usr\n6.Export disk usage to file: diskusage \u003e diskusage.txt\n\nFlags:\n  -a, --all             display all directories, otherwise only display folders whose usage size is not 0\n  -c, --color string    set color output mode. optional: auto, always, ignore (default \"auto\")\n  -d, --depth int       shows the depth of the tree directory structure (default 1)\n      --dir string      directory path (default \"./\")\n  -D, --directory       only display directory\n  -f, --filter string   regular expressions are used to filter files\n  -h, --help            help for diskusage\n  -l, --limit int       limit the number of files and directories displayed (default 9223372036854775807)\n  -r, --recursion       automatically calculate directory depth, for recursively traversing all sub directories\n  -t, --type strings    only count certain types of files  (default all)\n  -u, --unit string     displayed units. optional: B(Bytes), K(KB), M(MB), G(GB), T(TB) (default \"M\")\n  -v, --version         version for diskusage\n  -w, --worker int      number of workers searching the directory (default 32)\n```\n\n## 👀案例\n\n1. 只统计名为 doc 或 docx 的文件: `diskusage -t doc,docx` or `diskusage -f \".+\\.(doc|docx)$\"`\n2. 最大显示单位GB: `diskusage -u G`\n3. 支持颜色输出到管道: `diskusage -c always | less -R` or `diskusage -c always | more`\n\n如果你喜欢或正在使用这个项目来学习或开始你的解决方案，请给它一个star⭐。谢谢！\n","funding_links":[],"categories":["Go","Utilities","命令行工具"],"sub_categories":["Utility/Miscellaneous"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenquan%2Fdiskusage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenquan%2Fdiskusage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenquan%2Fdiskusage/lists"}