gdu

System UtilitiesMIT

Fast disk usage analyzer with a terminal interface.

Latest v5.39.0 · by Daniel MildeWritten in GoWebsitedundee/gduRSS

Release activity

Release activity — 11 releases across 10 days since Nov 22, 2025. Each cell is one day; darker means more releases that day. Nothing is recorded before Nov 22, 2025. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Jul 19, 2026No releases on Jul 26, 2026No releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026
MondayNo releases on Jul 20, 2026No releases on Jul 27, 2026No releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 20261 release on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026
TuesdayNo releases on Jul 21, 2026No releases on Jul 28, 2026No releases on Aug 4, 2026No releases on Aug 11, 20261 release on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026
WednesdayNo releases on Jul 22, 2026No releases on Jul 29, 2026No releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026
ThursdayNo releases on Jul 23, 2026No releases on Jul 30, 2026No releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026
FridayNo releases on Jul 24, 2026No releases on Jul 31, 2026No releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 20261 release on Nov 6, 2026
SaturdayNo releases on Jul 25, 2026No releases on Aug 1, 2026No releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026

11 releases since Nov 22, 2025, busiest day 2

Changelog

v5.39.0

Latest

What's New

This release helps you find what is safe to delete in the web UI, adds a working trash on macOS, reports the space reflinked files really take up, and fixes a number of disk usage miscounts. Below is a walkthrough of each change.

Cleanup projections in the web UI

The treemap can now highlight what is safe to clean up. Use the projection selector in the header (or press P) to switch the coloring. The tile area always stays the size:

  • Location - the default coloring by top-level directory.
  • Cleanup - everything is grey except cleanup candidates. Safe ones are strong orange. These are regenerated by their tool, e.g. node_modules next to package.json, target next to Cargo.toml, __pycache__, the Go, Gradle, Cargo, npm, uv and Homebrew caches, and app caches. Ones to review first are muted gold: downloaded ML models, installed toolchains such as ~/.rustup or ~/.nvm, installers, virtualenvs, dist/build and git-ignored files.
  • Age - colored by the latest change inside an item.
  • By category - candidates in the current directory grouped by category, so cache space spread over many small directories shows up as one block.

The legend shows how much space each category takes. Click a category to highlight only its items. Hovering a candidate shows what it is and how to remove it cleanly (e.g. ollama rm for Ollama models). Candidates are found in the background after the scan and are only highlighted. Deleting them is still up to you.

Paths can be excluded and custom rules added in the cleanup section of the config file:

cleanup:
  exclude: [~/work/current-project]
  rules:
    - category: build-artifact
      confidence: safe
      dir: .gradle
      markers: [build.gradle, build.gradle.kts]
      hint: Rebuilt by Gradle

Deletion in the web UI now runs in the background. The item is drawn hatched right away, you can delete more items and keep browsing in the meantime, and if a deletion fails, the item comes back with the reason.

by @mikhail-angelov in #697

Move to trash on macOS

The D key in the terminal UI and "Move to Trash" in the web UI now work on macOS with no setup. Gdu runs the system /usr/bin/trash command, which moves items into the Finder trash so you can put them back from there. It ships with macOS 15 (Sequoia) and later. On older releases, gdu shows an error that points you to --trash-command.

by @mikhail-angelov in #698

Exclusive size for reflinked files

On filesystems with reflinks (XFS, btrfs, bcachefs, ...) several files can share the same data. stat counts that shared data once for every file, so a directory full of clones looks huge even though deleting it frees almost nothing. The new --exclusive-size flag (Linux only) counts only the bytes a file does not share with other files, which is what deleting it would free:

gdu --exclusive-size /some/dir

The figure replaces disk usage everywhere (sorting, bars, totals and the dsize value in exports). Apparent size is unchanged. Exports gain an optional shsize key with the shared bytes, which can also be selected with --output-attrs. Where a filesystem does not support the needed FIEMAP call, gdu falls back to the regular figure. See Reflinks and shared extents for details.

by @jamesbraid in #710

Unreadable directories marked in JSON exports

The JSON export used to look exactly the same whether the scan was complete or not. A directory that gdu could not fully read is now written with "read_error":true (the same key ncdu uses) and gets its ! flag back when you import the file. The key is written regardless of --output-attrs.

by @jamesbraid in #712

Choose the shell opened with the b key

The shell spawned with the b key can now be set with --shell or in the configuration file:

gdu --shell /usr/bin/fish
shell: /usr/bin/fish

On Windows, gdu now stays open when you exit the shell instead of quitting.

by @timbretimber in #722 and #721

More accurate disk usage

Several miscounts were fixed:

  • Directories are now charged the blocks they really use, as du does. Small XFS directories stored inline report 0 instead of 4 KiB. On other filesystems, the directory's own blocks are added to the total. (@shivampwm2020, #694)
  • Hard links in the scanned root directory are counted once, so the default non-interactive scan no longer reports up to twice the real usage. (@mabunemeh, #709)
  • Windows: files compressed with NTFS compression and sparse files count their size on disk instead of their full length. (@nk-batman21, #713)
  • OneDrive online-only files now show zero disk usage and keep their real apparent size. Previously it was the other way around. (@AdamMagued, #692)
Better --no-cross (-x)
  • -x no longer crosses into btrfs subvolumes and snapshots. Like du -x, it now skips any directory on a different device than its parent. (@simon04, #711)
  • Mount points are found correctly when the scanned path is a symlink, such as /Volumes/Macintosh HD on macOS. (@itssali, #705)
Non-interactive output fixes
  • sorting.by and sorting.order from the configuration file are now honored in non-interactive listings, including --depth. --reverse-sort reverses the configured order. (@kok-o, #703)
  • --show-item-count prints the same count as the TUI and web UI, whichever analyzer is used. (@LuisFigueroaG, #691)
  • Empty and unreadable top-level directories are marked with e and !. (@LuisFigueroaG, #716)
Summary of all changes
New Contributors

Full Changelog: https://github.com/dundee/gdu/compare/v5.38.0...v5.39.0

View originalPermalink
How v5.39.0 went

v5.38.0

Added 11
  • Multiple directories can be given on the command line and are scanned one after another, presented together under a virtual top level directory named (multiple)
  • Directories are listed by absolute path in the multiple-directory view, so directories sharing a base name remain distinguishable
  • Web UI gained a full-window treemap view, toggled from the header button alongside the existing donut chart, showing the complete nested subtree of the current directory
  • Web UI treemap supports selecting tiles by click, opening directories by double-click, and keyboard shortcuts displayed by pressing ?
  • Web UI allows revealing the selected item in the system file manager with O in the treemap and per-row reveal buttons in the donut table view
  • Web UI allows deleting items with D or Delete in the treemap and per-row delete buttons in the donut table view, after a confirmation dialog offering Move to Trash or Delete Permanently
Changed 7
  • Scanning nested directories together is rejected, and exporting (-o) and database storage (--db) accept only a single directory
  • --change-cwd, spawning a shell, --browse-parent-dirs and exporting are unavailable while the virtual (multiple) top level directory is shown, and rescanning it rescans every directory below it
  • The --no-delete option hides the web UI delete action and makes the server reject delete requests, while reveal remains available
  • Deletion in the web UI while a filter is active is disabled by default, and can be overridden with GDU_ALLOW_DELETE_WITH_FILTER=1
  • Negated patterns and patterns matching every directory in .gitignore files are rejected with an error rather than skipped silently
  • The -I, -X and -G options combine so a directory is ignored if it matches any of them, instead of the last option winning; paths from -i apply in addition
  • The item count bar is only drawn while the item count column is visible
Security 1
  • Web UI reveal and delete require a request originating from a loopback address carrying a random per-run token that is never served over the API and is only present in the URL gdu prints and opens
View originalRead the notes
How v5.38.0 went

v5.37.0

Added 13
  • Web UI that serves a browser-based interface via the --web flag, with an animated donut chart, sortable table, breadcrumb navigation, disk-usage/apparent-size toggle, and live scan progress streaming
  • --web-listen flag and web.listen config option to pin a fixed listen address for the web UI
  • --web-open flag to print the web UI URL without launching a browser when set to false
  • Tab key preview of directory totals found so far during a scan
  • Ctrl+C stops scheduling new scan work and keeps partial results available for browsing or exporting
  • --show-symlink-target flag to display symlinks as name -> target
Changed 1
  • Terminal output honors the BLOCK_SIZE and BLOCKSIZE environment variables, with BLOCK_SIZE taking precedence; explicit size-format flags override them and exported JSON keeps raw byte values
Security 1
  • The web UI is read-only and has no authentication; it binds to localhost by default and prints a warning when bound to a non-loopback address
View originalRead the notes
How v5.37.0 went

v5.36.1

Changed 3
  • Optimized the top directory analyzer for better performance
  • Replaced the progress channel with atomic counters and ticker polling in all analyzers
  • Refactored analyzers and improved the SQLite backend
Fixed 2
  • Improved SQLite storage and analyzer implementation
  • Fixed a flaky test
View originalRead the notes
How v5.36.1 went

v5.36.0

Added 2
  • Added a top-dir analyzer for non-interactive mode
  • Implemented deletion, JSON encoding, and query optimizations for SQLite storage
Changed 8
  • Reduced memory consumption, mainly for larger disks
  • Improved speed of non-interactive mode
  • Updated the go-isatty dependency from 0.0.20 to 0.0.21
  • Updated the golang.org/x/sys dependency from 0.42.0 to 0.43.0
  • Updated the modernc.org/sqlite dependency from 1.48.0 to 1.49.1
  • Updated the golang.org/x/text dependency from 0.34.0 to 0.36.0
  • Updated the softprops/action-gh-release action from 2 to 3
  • Updated the github.com/gdamore/tcell/v2 dependency from 2.13.8 to 2.13.9
View originalRead the notes
How v5.36.0 went

v5.35.0

Added 4
  • Show progress bar when analysing the whole disk or partition
  • Print marked items to stdout
  • Add support for browsing tar archives
  • Force interactive mode
Changed 7
  • Use Golang 1.26 in CI
  • Release GitHub action updated
  • Move coverage for app package
  • Bump modernc.org/sqlite from 1.46.1 to 1.47.0
  • Bump github.com/fatih/color from 1.18.0 to 1.19.0
  • Bump codecov/codecov-action from 5 to 6
  • Bump modernc.org/sqlite from 1.47.0 to 1.48.0
Fixed 3
  • Create parent directory for sqlite database
  • Use smaller value log file size for 32bit systems
  • Make itemCount 64bit
Removed 1
  • Drop support for Golang 1.24
View originalRead the notes
How v5.35.0 went
v5.34.2

gdu v5.34.2

Fixed 1
  • Sqlite test now runs only on supported platforms
View originalRead the notes
How v5.34.2 went
v5.34.1

gdu v5.34.1

Fixed 3
  • make itemCount 64bit
  • use smaller value log file size for 32bit systems
  • create parent dir for sqlite db
View originalRead the notes
How v5.34.1 went
v5.34.0

gdu v5.34.0

Added 3
  • Interactive file type filtering via the -T key
  • Ability to navigate above the launch directory
  • --no-view-file flag for the interactive viewer
Fixed 3
  • --show-item-count is now enabled in non-interactive mode
  • Columns are aligned in non-interactive mode
  • SQLite database support on all platforms
View originalRead the notes
How v5.34.0 went
v5.33.0

gdu v5.33.0

Added 7
  • Add SQLite analyzer
  • Add `--archive-browsing` flag to show zip/jar files as directories
  • Add `--collapse-path` flag for collapsing single-child directories
  • Add `--depth` flag
  • Add options to force output units
  • Allow excluding files by their type
  • Add time filters
Changed 3
  • Bump Go and badger versions
  • Bump versions of dependencies
  • Bump Go to 1.25.5 to fix crypto/x509 CVEs
Fixed 1
  • Fix non-deterministic ordering in ParallelAnalyzer
Security 1
  • Fix crypto/x509 CVEs by bumping Go to 1.25.5
View originalRead the notes
How v5.33.0 went
v5.32.0

gdu v5.32.0

Added 2
  • Add --no-spawn-shell flag to disable shell access
  • Add --reverse-sort flag for non-interactive mode
Changed 4
  • Switch mouse flag name to mimic default ncdu behavior
  • Bump version of tcell and drop support for Golang 1.22
  • Use Golang 1.24.4 in CI
  • Align struct fields
Fixed 3
  • Make 'no' the default button in delete/empty confirmation dialogs
  • Reorder --mouse option
  • Fix link to configuration.md in documentation
Security 1
  • Update ulikunitz/xz package to fix vulnerability
View originalRead the notes
How v5.32.0 went
View all

Discussion

If you publish gdu, you can claim this product by proving you administer its repository.