Gdu provides an additional set of configuration options to the usual command line options.
You can get the full list of all possible options by running:
gdu --write-config
This will create file $HOME/.gdu.yaml
with all the options set to default values.
Let's go through them one by one:
Path to a logfile (default "/dev/null")
Import analysis from JSON file
Export all info into file as JSON
Paths to ignore (separated by comma). Can be absolute (like /proc
) or relative to the current working directory (like node_modules
). Default values are [/proc,/dev,/sys,/run].
Path patterns to ignore (separated by comma). Patterns can be absolute or relative to the current working directory.
Read path patterns to ignore from file. Patterns can be absolute or relative to the current working directory.
Set max cores that Gdu will use.
Use sequential scanning (intended for rotating HDDs)
Show apparent size
Show relative size
Show number of items in directory
Do not use colorized output
Do not use mouse
Do not run in interactive mode
Do not show progress in non-interactive mode
Do not cross filesystem boundaries
no-hidden
Ignore hidden directories (beginning with dot)
Do not allow deletions
Follow symlinks for files, i.e. show the size of the file to which symlink points to (symlinks to directories are not followed)
Enable collection of profiling data and provide it on http://localhost:6060/debug/pprof/
Enable memory garbage collection during analysis with constant level set by GOGC
Use persistent key-value storage for analysis data (experimental)
Path to persistent key-value storage directory (default is /tmp/badger)
Read analysis data from persistent key-value storage
Show only a total in non-interactive mode
Show sizes with decimal SI prefixes (kB, MB, GB) instead of binary prefixes (KiB, MiB, GiB)
Show sizes as raw numbers without any prefixes (SI or binary) in non-interactive mode
Set CWD variable when browsing directories
Delete items in the background, not blocking the UI from work
Delete items in parallel, which might increase the speed of deletion
Color of text for the selected row
Background color for the selected row
Maximum length of file path for the current item in progress bar. When the length is reached, the path is shortened with "/.../".
Show size bar without Unicode symbols.
Color of text for footer bar
Background color for footer bar
Color of numbers displayed in the footer
Color of text for header bar
Background color for header bar
style.header.hidden
Hide the header bar
Color of numbers in result rows
Color of directory names in result rows
Sort items. Possible values:
- name - name of the item
- size - usage or apparent size
- itemCount - number of items in the folder tree
- mtime - modification time
Set sorting order. Possible values:
- asc - ascending order
- desc - descending order