LinuxCommandLibrary

gdu

Disk usage analyzer with console interface.

TLDR

Interactively show the disk usage of the current directory

$ gdu
copy


Interactively show the disk usage of a given directory
$ gdu [path/to/directory]
copy


Interactively show the disk usage of all mounted disks
$ gdu --show-disks
copy


Interactively show the disk usage of the current directory but ignore some sub-directories
$ gdu --ignore-dirs [path/to/directory1,path/to/directory2,...]
copy


Ignore paths by regular expression
$ gdu --ignore-dirs-pattern '[.*[abc]+]'
copy


Ignore hidden directories
$ gdu --no-hidden
copy


Only print the result, do not enter interactive mode
$ gdu --non-interactive [path/to/directory]
copy


Do not show the progress in non-interactive mode (useful in scripts)
$ gdu --no-progress [path/to/directory]
copy

SYNOPSIS

gdu [flags] [directory_to_scan]

DESCRIPTION

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.

OPTIONS

-h, --help[=false] help for gdu

-i, --ignore-dirs=[/proc,/dev,/sys,/run] Absolute paths to ignore (separated by comma)

-l, --log-file="/dev/null" Path to a logfile

-c, --no-color[=false] Do not use colorized output

-x, --no-cross[=false] Do not cross filesystem boundaries

-p, --no-progress[=false] Do not show progress in non-interactive mode

-n, --non-interactive[=false] Do not run in interactive mode

-d, --show-disks[=false] Show all mounted disks

-a, --show-apparent-size[=false] Show apparent size

-v, --version[=false] Print version

FILE FLAGS

Files and directories may be prefixed by a one-character flag with following meaning:

!

An error occurred while reading this directory.

.

An error occurred while reading a subdirectory, size may be not correct.

@

File is symlink or socket.

H

Same file was already counted (hard link).

e

Directory is empty.

Copied to clipboard