di 5.0.14

di is a disk information utility that displays everything that df does and more. It features the ability to display your disk usage in whatever format you prefer. It also checks the user and group quotas, so that the user sees the space available for their use, not the system wide disk space. It is designed to be highly portable across many platforms and is great for heterogenous networks.

Tags c monitoring disk space console cross-platform system-administrators
License Zlib
State mature

Recent Releases

5.0.1404 Mar 2025 17:39 minor bugfix: 5.0.14 2025-3-4 * Bug Fixes * Fix -I, -x: incorrect parse issue left over from re-write. * Fix crash with initialization and free of quota data. * Environment variables: Also handle XiB scale sizes. * Fix Robi and Quebi prefix names.
5.0.1323 Feb 2025 19:43 minor bugfix: 5.0.13 2025-2-23 * Bug Fixes * build: updates for NetBSD. * Internal * build: cleanup. * build: mkconfig: Update to version 2.6.8 (netbsd, pkg-config).
5.0.1221 Feb 2025 16:02 minor bugfix: 5.0.12 2025-2-21 * Bug Fixes * Fix --si option block size. * Updates for HP-UX. * build: mkconfig: Update to version 2.6.7 (hp-ux).
5.0.1118 Feb 2025 17:50 minor bugfix: 5.0.11 2025-2-18 * Bug Fixes * build: cmake: Fix build of .mo files (macports). * build: mkconfig: Fix handling of optional libraries. * build: mkconfig: Update to version 2.6.6.
5.0.1017 Feb 2025 10:29 minor bugfix: 5.0.10 2025-2-17 * Bug Fixes * cmake: Use a temporary dir for building the .mo files (macports). 5.0.9 2025-2-15 * Bug Fixes * build: MacOS: Fix the pure cmake build when using Xcode/CLT.
5.0.610 Feb 2025 14:46 minor bugfix: 5.0.6 2025-2-10 * Bug Fixes * build: MacOS: Fix the pure cmake build. * build: Clean up some more warnings (Big Sur/13.2, llvm-19). * build: mkconfig: Calculate Linux, Arch Linux: set proper lib path.
5.0.508 Feb 2025 18:37 minor bugfix: 5.0.5 2025-2-8 * Bug Fixes * build: Fix the Makefile so that errors are not ignored. * cmake: Do proper checks for compiler and linker options. * Fix LFS 32-bit/64-bit flag processing. * Internal * Upgrade mkconfig to version 2.6.5.
5.0.407 Feb 2025 14:38 minor bugfix: 5.0.4 2025-2-7 * Bug Fixes * build: Make it easy to use cmake without the Makefile.
5.0.307 Feb 2025 01:24 minor bugfix: 5.0.3 2025-2-6 * Bug Fixes * MacOS: Fix builds prior to version 10.11. * cmake: Honor DI_FORTIFY environment variable.
5.0.206 Feb 2025 22:19 minor bugfix: 5.0.2 2025-2-6 * Bug Fixes * MacOS: Remove extraneous minimum macos version. * Fix libdi.3 manual page errors. * cmake: Check for CMAKE_SKIP_RPATH environment variable. * po install: honor DESTDIR. * Fix crash on unknown option.
5.0.005 Feb 2025 22:16 major feature: 5.0.0 2025-2-5 * Bug Fixes * Fix some internal errors (string sizing). * Locate and use Linux tirpc library (nfs quotas). * Do not print trailing spaces when the last field is a string display. * If a filesystem is specified on the command line, report for that filesystem, not where the device name is located. * Fixed Sorting by filesystem space. * CSV and JSON output will now include the totals if requested. * Fixed putting 'tmpfs', 'cgroup', 'swap' in the ignore list. * Added 'squashfs', 'overlay' to the ignore list. * Fix calculation of used space if total space is zero. * Changes * Drop syllable and VMS support. * All format strings options (mstO) no longer truncate the output. * -w and -W options are no longer supported and are now ignored. * Support for 512 byte block size has been dropped. * Removed old tcl and perl interfaces. * The default scaling has been changed to use 'h' rather than 'H'. * When the --si option is used the default scaling is changed to use 'h' rather than 'H'. * New Features * Use big number/multi precision libraries (GMP or libtommath) if available. * Split into a library with a proper API and main program. * Add cmake configuration for modern systems. * json output: Add "scaling" information. * json output: Add "blocksize" information. * Internal * mkconfig: Updated to version 2.6.4.
4.54.0.115 Oct 2024 10:15 minor bugfix: * Bug Fixes / Changes / New Features * Fix single quotes in the manual page. * Missing 4.54 entry in change log.
4.5408 Oct 2024 16:14 minor bugfix: Added -fpermissive for C++ (Haiku). Cleaned up C++.
4.5324 Jun 2024 00:54 minor bugfix: Fixed library check for modern compilers. Removed old D language stuff.
4.5224 Apr 2023 19:49 minor bugfix: Makefile cleanup. Remove support for K and R compilers and ancient systems. Mac OS: apfs filesystems with a mount point starting with /System/ are ignored by default. Fix debug output for env vars. DI_ARGS: print error and exit when encountering unknown data.
4.5109 Nov 2021 03:27 minor feature: 4.51 (2021-11-8) Handle EPERM errors.
4.5004 May 2021 00:14 minor feature: 4.50 2021-4-5 JSON: Exclude extraneous format characters from the json output. JSON: Fix quoting around human-readable values. Totals: Support APFS filesystem. Mac OS: Put time machine filesystems on the ignore list. Linux: Put filesytems using 'tmpfs' or 'cgroup' as the device name on the ignore list. Solaris: Put filesystems using 'swap' as the device name on the ignore list.
4.4916 Mar 2021 17:36 minor feature: 4.49 2021-3-16 Added the -j (--json-output) option to output json data. Internal code cleanup.
4.48.0.130 Jan 2021 22:52 minor bugfix: 4.48.0.1 2021-1-30 Update di.spec. Update mkconfig to version 2.6.3.
4.4805 Jun 2020 14:04 minor bugfix: 4.48 (2020-6-3) disable spurious compiler warnings. Various build fixes. make test no longer fails if perl is not present. Updated mkconfig to version 2.3.
4.47.323 Dec 2019 18:29 minor bugfix: 4.47.3 (2019-12-23) Fixed missing link flags for clang.
4.47.230 Oct 2019 18:39 minor bugfix: 4.47.2 (2019-10-30) Minor makefile cleanup.
4.47.126 Jun 2019 16:57 major bugfix: 4.47.1 (2019-6-25) Update mkconfig to version 2.1.1 (fixes build on 32-bit). Add configs/config.ms.cl (visual studio definitions).
4.4712 Aug 2018 15:36 major bugfix: 4.47 (2018-8-12) Fixed bugs located by scan.coverity.com. This should fix a numeric sort bug. Update mkconfig to version 2.0.0 and make changes to support it. Get perl extension build working again.
4.4612 Apr 2018 04:42 minor bugfix: 4.46 (2018-4-11) Tcl: Fix bad allocation. Tcl: Raise errors rather than exiting. Exit program when incorrect options are specified. Update mkconfig to version 1.31. Add missing mkconfig/runtests.sh.
4.4510 Apr 2018 11:52 minor bugfix: 4.45 (2018-4-10) Update mkconfig to version 1.30 to fix modern libintl.h/printf tests.
4.4408 Jun 2017 04:59 minor bugfix: (a) Fixed check of exabyte sized filesystems. The signed check now only checks for -1 and -2; there could still be situations where the overflow exactly matches these values. (b) Added faster method for windows check for missing removable filesystems.