gdu is a fast console disk usage analyzer (replaces ncdu, du, etc.)

gdu Is a new console disk usage analyzer, which was developed with speed in mind. It is written in Go and is available for Linux, macOS and Microsoft Windows.

gdu (go to disk usage) and Nandu, A popular console disk usage analyzer, the main difference is: speed. gdu utilizes parallel processing, especially created for solid state drives (SSD). It can also be used with a hard disk drive (HDD), but in this case, the performance improvement is not very large compared to other tools.

The gdu developer has a benchmark section on the tool’s project page, which states that gdu can scan 80G data on a 500 GB SSD (without cache) in 6.5 seconds, while ncdu can perform the same operation in 54 seconds. This is a screenshot of more benchmarks, comparing gdu with du, nnn, etc.:

gdu benchmark

As for options, gdu will not pack that many.It can display all installed disks (running gdu (Without parameters), analysis directory (gdu /path/to/directory), write the error to the log file (-log-file=/path/to/log/file), ignore the directory (-ignore-dir=/sys,/proc For example) and use only white/gray/black (-no-color).

gdu usage:

  • Up Either k Move cursor up
  • Down Either j Move cursor down
  • Enter, Right Either l Select catalog/device
  • Left Either h Go to parent directory
  • d Delete selected files or directories
  • n Sort by name (asc / desc)
  • s Sort by size (ascending/descending)
  • c Sort by item (ascending/descending)

Download gdu (use disk)

The tool is available on AUR (Arch Linux/Manjaro), Brew and Snap. In addition, Linux, macOS and Windows binaries are also available on Linux. Publish page. [[Edit]]Now, there is also a gdu DEB package for Linux distributions based on Debian/Ubuntu.