dfc is a small, handy utility that displays file system space usage using graph and colors.
· simply use the "make" command in the Terminal:
· Once built, you can run it by typing:
(see ./dfc -h for options and usage)
What's New in This Release: [ read full changelog ]
· Internalization support: dfc can now be easily translated into other languages. Being a french native speaker, I already translated dfc into French. Of course, if you would like to contribute and translate dfc into a language you speak fluently, you are more that welcomed.
· An optional configuration file has appeared. It allows you to change dfc colors, symbol used to draw the graphs, values from which usage is considered medium and high and colors used in HTML export. So yes, if Mac OSX user want to change the default '=' sign for a '$' sign, they can definitely do it. :P
· Auto-adjust feature has been improved. Now, instead of arbitrary disabling options when it estimated that the width was too small, it computes the required width and disables options in a smart way until the output fits the terminal width. Of course, this behavior can still be disabled using the -f option.
Better platform support:
· Mac OSX users may now enjoy the -o option
· DragonFly BSD support
· NetBSD support
· OpenBSD support
· -d option allows you to see... used size (true: it did not exist in previous releases of dfc !)
· -e option allows you to export data to other formats. What does this mean? Instead of simply displaying information on your console, the data generated by dfc can now be exported CSV, TeX and HTML format. In my opinion, the most useful one probably is the HTML export. See an example of what it looks like with color and without color . It's now easy to imagine a cron job output results to HTML format and send it via e-mail or something of the kind.
· -l option allows you to only show information about locally mounted file system (just like the old good df(1) does).
· -p allows you to perform filtering based on file system name.
· -q sorts the output based on file system name, file system type or mount point. For those interested, the algorithm used is a merge sort because I think it probably is one of the most efficient and easy to implement considering that the data is stored in a linked list structure (memory problem does not exist here as all it does is changing pointers (but the data to sort is very small anyway)).
· Of course, all those new options are fairly well documented in the manpage.
· Codebase has been entirely reviewed and modified. So, with all those changes, some bugs may have been introduced even though I thoroughly tested dfc during the development process and spent the last 10 days hunting bugs. However, this release includes some bug fixes over 2.5.0.
· The one worth to mention is a bug that was affecting FreeBSD users and was causing dfc to be really wrong (130% usage was possible...). This has of course been fixed in this release. Inodes count was also wrong on FreeBSD and is has also been fixed.