dfc 2.1.0 is there!
Less is more...
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:-soption does now sum the total of inodes when-ioption is triggered- When using human readable, sizes in bytes were display like so
3.0Bwhich does not make sense at all cause there is no half-byte.
- Color is now automatically in "color-auto" mode. What does this mean? Well, if you use
dfcin 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 ofdfcinto 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-uoption 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-moption which converts the units to SI. So to display the size in Go, you will use the following:dfc -u g -m
Of course,-moption can be used alone and this would mean that the output would be in human-readable mode using SI. dfcnow 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
-ioption, akis now appended to the number of inodes and this number is divided by 1000. This makes it more readable. -boption allows you to not display the graph bar. It can be useful on narrow screens.-Tis a new options that shows the filesystem type. Now, filesystem type is not displayed by default.-toption allows you to perform filtering on filesystem type. For instance, you could filter the output to displayext4type 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!
Cheers,
Robin
Comments