dfc 2.1.0 is there!

Less is more...
Added by Robin Hahling about 8 years ago

Well, a new version of dfc already. This is a small bump in the version number but there are actually quite a few changes and the code has been largely modified.

First, there is two bugfixes:
  • -s option does now sum the total of inodes when -i option is triggered
  • When using human readable, sizes in bytes were display like so 3.0B which does not make sense at all cause there is no half-byte.
Now for the new features:
  • Color is now automatically in "color-auto" mode. What does this mean? Well, if you use dfc in your terminal, there won't be any changes. However, if the output is not a terminal, color mode is disabled. It is useful if you pipe the output of dfc into another program for instance.
  • Unit option has been completely reorganized. There is no more -k, -K, -m, (and so on) option. Instead, you may use the -u option which requires a sub-option. Let's say you want to display the size in Gio, you will then use this command:
    dfc -u g

    If you want SI units, you can combine this with the new -m option which converts the units to SI. So to display the size in Go, you will use the following:
    dfc -u g -m

    Of course, -m option can be used alone and this would mean that the output would be in human-readable mode using SI.
  • dfc now supports Tio, Pio, Eio, Zio and Yio units (and as such, To, Po, Eo, Zo, Yo). By not having such huge storage, I cannot assure you it works but it should ;).
  • When using -i option, a k is now appended to the number of inodes and this number is divided by 1000. This makes it more readable.
  • -b option allows you to not display the graph bar. It can be useful on narrow screens.
  • -T is a new options that shows the filesystem type. Now, filesystem type is not displayed by default.
  • -t option allows you to perform filtering on filesystem type. For instance, you could filter the output to display ext4 type of filesystem only. To do so, you would just type the following:
    dfc -t ext4

So, as I wrote: less is more. Less because there are fewer options by the number but a lot more options in terms of functionality (thanks to sub-options).

As always, I hope you will enjoy it as much as I enjoy writing it!