For a while I've wanted df to be able to show the totals of all the
filesystems listed. The attached diff, when applied to df.c in fileutils
4.0p, adds the option "--totals" to do just that..
# /bin/df -T --totals
Filesystem Type 1k-blocks Used Available Use% Mounted on
/dev/hda8 ext2 204951 91351 103018 47% /
/dev/hda2 ext2 21958 3099 17725 15% /boot
/dev/hda5 ext2 3102940 2180436 764880 74% /usr
/dev/hda6 ext2 2068620 635792 1327748 32% /home
/dev/hda10 ext2 5952932 904444 4746092 16% /misc
/dev/hda1 vfat 2097532 1201208 896324 57% /dos/c
/dev/hda9 vfat 5606080 1323732 4282348 24% /dos/d
Total - 19055013 6340062 12138135 34%
#
--
Andy Rosen <[EMAIL PROTECTED]> | "The most valuable commodity I know of
Engineering Manager | is information. Wouldn't you agree?"
Battletop.com, Inc. | -Gordon Gekko, "Wall Street"
Diff to df.c to add --totals