gdu

command module
Version: v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2021 License: MIT Imports: 8 Imported by: 0

README

gdu - Go Disk Usage

Build Status codecov Go Report Card

Pretty fast disk usage analyzer written in Go.

Gdu is intended primarily for SSD disks where it can fully utilize parallel processing. However HDDs work as well, but the performance gain is not so huge.

Installation

Head for the releases and download binary for your system.

Using curl:

curl -L https://github.com/dundee/gdu/releases/latest/download/gdu-linux-amd64.tgz | tar xz
chmod +x gdu-linux-amd64
mv gdu-linux-amd64 /usr/bin/gdu

Arch Linux:

yay -S gdu

Brew:

brew tap dundee/taps
brew install gdu

Go:

go get -u github.com/dundee/gdu

Usage

gdu                                 # show all mounted disks
gdu some_dir_to_analyze             # analyze given dir
gdu -log-file=./gdu.log some_dir    # write errors to log file
gdu -ignore=/sys,/proc /            # ignore some paths

Running tests

make test

Benchmark

Scanning 80G of data on 500 GB SSD.

Tool Without cache With cache
gdu / 6.5s 2.5s
dua / 8s 2s
godu / 8.5s 3s
du -hs / 44s 4.5s
duc index / 47s 5s
ncdu / 54s 12s

Gdu is inspired by ncdu, godu, dua and df.

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL