Master Disk Space Insight: Install and Use the Go‑Based “diskusage” Tool
This guide introduces the Go‑based “diskusage” utility, shows how to install it with a single command, explains its usage with examples such as filtering specific file types, displaying sizes in gigabytes, and enabling colored output, and notes its cross‑platform support for Linux, macOS, and Windows.
Today we recommend the project diskusage , a tool that displays disk usage.
Installation is simple: go install github.com/chenquan/diskusage@latest Usage instructions:
Examples:
Count only files named Doc or docx:
diskusage -t doc,docx or diskusage -f ".+\.(doc|docx)$"Show size in GB: diskusage -u G Enable colored output to pipe:
diskusage -c always | less -R or diskusage -c always | moreCurrently supported on Linux, macOS, and Windows, with many more usages to explore.
Open source project address: https://github.com/chenquan/diskusage
Author: chenquan
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Open Source Linux
Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
