Operations 2 min read

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.

Open Source Linux
Open Source Linux
Open Source Linux
Master Disk Space Insight: Install and Use the Go‑Based “diskusage” Tool

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 | more

Currently supported on Linux, macOS, and Windows, with many more usages to explore.

Open source project address: https://github.com/chenquan/diskusage

Author: chenquan

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

cross-platformGodisk usagecommand-linediskusage
Open Source Linux
Written by

Open Source Linux

Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.