Act on items
d
Delete the selected item
Asks for confirmation. Disabled by --no-delete.
D
Move the item to the trash
Uses the built-in trash unless --trash-command is set.
e
Empty the directory or file
i
Show info about the item
v
View the file's content
r
Rescan the current directory
Space
Mark an item for deletion
y
Copy the item's path to the clipboard
o
Open in an external program
p
Print marked paths on exit
b
Spawn a shell in this directory
E
Export the analysis as JSON
Run it
gdu
Analyse the current directory
gdu <path>
Analyse a directory
gdu <dir1> <dir2>
Analyse several directories
gdu -d
List mounted disks
gdu -x <path>
Stay on one filesystem
gdu -a
Start on apparent size
gdu -B
Show relative size bars
gdu --si
Use kB / MB, not KiB / MiB
gdu --mouse
Enable mouse support
gdu -c
Plain colours only
gdu -u
No Unicode symbols
gdu --show-symlink-target
Show name -> target for symlinks
gdu --collapse-path
Merge single-child directory chains
gdu --web <path>
Browse in a web UI
gdu --web --web-listen localhost:8080 <path>
Fixed address for the web UI
gdu --interactive <path> | tee out.txt
Force the TUI when piped
Filter the scan
gdu -i <dir>,<dir> <path>
Ignore paths (default /proc,/dev,/sys,/run)
gdu -I '<regex>' <path>
Ignore paths by pattern
gdu -X <file> <path>
Read ignore patterns from a file
gdu -G .gitignore <path>
Ignore using gitignore-style rules
gdu -H <path>
Skip hidden directories
gdu -T <ext>,<ext> <path>
Include only these file types
gdu -E <ext>,<ext> <path>
Exclude these file types
gdu --min-age 30d <path>
Only files at least 30 days old
gdu --max-age 7d <path>
Only files changed in the last 7 days
gdu --since <date> --until <date>
<path>
Files in a date range
gdu -L <path>
Size the targets of symlinked files
gdu --archive-browsing <path>
Browse into zip / tar archives
Non-interactive and export
gdu -n <path>
Print sizes, no TUI
gdu -ps <path>
Print only the total
gdu -t 10 <path>
Show the 10 largest files
gdu -n --depth 2 <path>
Print the tree to depth 2
gdu -n --reverse-sort <path>
Smallest first
gdu -n -k <path>
Sizes in KiB
gdu -n --no-prefix <path>
Raw byte counts
gdu -o- <path> | gzip > scan.json.gz
Export a scan as JSON
zcat scan.json.gz | gdu -f-
Browse a saved scan
gdu -o scan.json --output-attrs name,dsize
<path>
Export only chosen attributes
gdu --db scan.sqlite <path>
Store the scan in SQLite or BadgerDB
gdu -r --db scan.sqlite
Reopen a stored scan, no rescan