LinuxCommandLibrary

dfc

disk usage display with color-coded graphs

TLDR

Display disk usage with color-coded graph bars

$ dfc
copy
Show all filesystems including pseudo and special
$ dfc -a
copy
Display in a specific unit (K, M, G, T, P, E, Z, Y)
$ dfc -u [G]
copy
Show only specific filesystem types
$ dfc -t [ext4,btrfs]
copy
Export output as CSV
$ dfc -e csv
copy
Sort by filesystem name
$ dfc -s [name]
copy
Hide specific columns
$ dfc -d [used,avail]
copy
Display without colors
$ dfc -c never
copy

SYNOPSIS

dfc [-adfghilmnopqsTvwWX] [-c when] [-e format] [-s column] [-t types] [-u unit] [path ...]

DESCRIPTION

dfc (disk free color) is an enhanced df command that displays filesystem disk space usage with color-coded bar graphs. It provides a more visual and readable alternative to the traditional df output.
The graph bars change color based on usage levels: typically green for low usage, yellow for moderate, and red for high usage. This visual representation makes it easy to quickly identify filesystems approaching capacity.
Output can be customized extensively through column selection, sorting, and filtering. The tool supports multiple export formats including CSV, JSON, and HTML for integration with other tools or reporting systems. Filesystem type filtering allows focusing on specific storage types.
Configuration options can be set in ~/.config/dfc/dfcrc or /etc/dfc.conf for persistent preferences. Color thresholds and graph characters can be customized in the configuration file.

PARAMETERS

-a

Include all filesystems (pseudo, duplicate, inaccessible).
-c when
Color mode: always, auto, or never.
-d list
Hide specified columns (comma-separated).
-e format
Export format: csv, html, json, or text.
-f
Disable auto-scale, print in bytes.
-g
Show graph only.
-h
Display help.
-i
Show information about inodes instead of disk space.
-l
Show only local filesystems.
-m
Use SI units (powers of 1000 instead of 1024).
-n
Do not print header.
-o
Show mount options.
-p
Show percentage used only in the graph.
-q
Hide the graph bar.
-s column
Sort by column (name, type, used, avail, etc.).
-t types
Filter by filesystem types (comma-separated).
-T
Show filesystem type.
-u unit
Force display unit (k, m, g, t, p, e, z, y, h).
-w
Wide output (no column truncation).
-W
Wide output for mount points.
-X
Exclude pseudo filesystems.

CAVEATS

Colors require a terminal with color support. Very long mount point names may be truncated in default mode (use -W for full paths). Some virtual filesystems may show unexpected values. Graph width adapts to terminal width.

HISTORY

dfc was created by Robin Hahling as a colorful, user-friendly replacement for the traditional df command. The project focuses on making disk space monitoring more visual and accessible. It's written in C and available in repositories of most major Linux distributions.

SEE ALSO

df(1), du(1), ncdu(1), dust(1), duf(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community