Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Go
  3. gdu

gdu

MITGov5.36.1

A fast, parallel disk usage analyzer with an interactive console interface written in Go.

GitHubGitHub
5.7k stars204 forks0 contributors

What is gdu?

Gdu is a disk usage analyzer written in Go that provides a fast, interactive terminal interface for exploring and managing disk space. It solves the problem of identifying large files and directories efficiently, using parallel processing to speed up scans, especially on SSDs. The tool offers both interactive navigation and scriptable output modes for flexible integration into workflows.

Target Audience

System administrators, developers, and power users who need to quickly analyze disk usage from the command line, particularly those managing servers or workstations with large storage volumes.

Value Proposition

Developers choose Gdu for its exceptional speed due to parallelized scanning, its intuitive keyboard-driven interface, and its ability to save and reload analyses. It outperforms traditional tools like `du` and offers a modern alternative to ncdu with additional features like database storage and extensive configuration.

Overview

Fast disk usage analyzer with console interface written in Go

Use Cases

Best For

  • Quickly identifying large files and directories consuming disk space
  • Interactive disk exploration via a terminal UI
  • Scripting disk usage analysis with JSON export
  • Analyzing SSD storage with parallel processing
  • Saving and comparing disk usage snapshots over time
  • Filtering analysis by file type, age, or path patterns

Not Ideal For

  • Workflows requiring graphical or web-based disk usage visualizations
  • Environments with slow, single-core CPUs or HDD-only storage
  • Scripts that need the absolute fastest one-off scan without interactive overhead

Pros & Cons

Pros

Parallel Scanning Speed

Utilizes multiple CPU cores for rapid analysis, outperforming tools like du and ncdu in benchmarks, especially on SSDs as highlighted in the performance comparisons.

Interactive Console Interface

Provides a keyboard-driven UI with sorting, deletion, and file viewing, making disk exploration efficient without leaving the terminal.

Database and JSON Export

Supports saving scans to SQLite or BadgerDB for reloading with -r flag, and JSON export for scripting, enabling persistent analysis without rescanning.

Advanced Filtering Options

Allows exclusion by path, file type, regex, and time-based filters via flags like -i, -I, and --since, enabling focused disk usage analysis.

Cons

Limited HDD Performance

Optimized for SSDs with parallel processing, but on HDDs the speed gain is minimal, and the README notes that sequential mode must be manually enabled with --sequential.

Configuration Complexity

Requires YAML config files for advanced settings like styling and sorting, which can be cumbersome for casual users compared to simpler command-line tools.

Storage Overhead in Database Mode

Saving analysis to databases significantly increases scan time, as benchmarks show it can be 4-5 times slower than default mode, adding latency for repeated queries.

Open Source Alternative To

gdu is an open-source alternative to the following products:

d
dust

A command-line tool for calculating disk usage, similar to du but with additional features like sorting and filtering.

d
dua

A command-line disk usage analyzer that shows disk space usage for directories in a fast and parallel manner.

d
diskus

diskus is a command-line tool written in Rust that analyzes disk usage and provides a fast, parallel alternative to tools like du. It displays disk usage statistics in a human-readable format.

p
pdu

PDU (Protocol Data Unit) is a term in networking for a unit of data transmitted between network entities, not a specific software product.

n
ncdu

ncdu (NCurses Disk Usage) is a command-line disk usage analyzer with an ncurses interface that helps visualize disk space usage in directories.

Frequently Asked Questions

Quick Stats

Stars5,718
Forks204
Contributors0
Open Issues48
Last commit6 days ago
CreatedSince 2018

Tags

#hacktoberfest#filesystem#command-line-tool#system-administration#disk-usage#disk-usage-analyzer#golang#cli#storage-analysis#parallel-processing#go#performance

Built With

G
Go

Included in

Go169.1k
Auto-fetched 23 hours ago

Related Projects

pdfcpupdfcpu

A PDF processor written in Go.

Stars8,667
Forks615
Last commit6 days ago
aferoafero

The Universal Filesystem Abstraction for Go

Stars6,658
Forks565
Last commit4 days ago
go-wkhtmltopdfgo-wkhtmltopdf

Golang commandline wrapper for wkhtmltopdf

Stars1,177
Forks159
Last commit7 months ago
notifynotify

File system event notification library on steroids.

Stars930
Forks135
Last commit7 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub