On Sun, Aug 24, 2025 at 05:01:31PM -0700, Collin Funk wrote: > > 2) needs to be able to exclude or "include only" certain strings in the > > output using regex patterns. Maybe -v, like egrep has, or -x for "eXclude" > > (Apple's version doesn't) > > The GNU version of 'df' already has the -x option to exclude file system > types. I can exclude apfs file systems like so (which is all of them on > this machine): > > $ ./src/df -x apfs > df: no file systems processed > > For other fields I think that 'df | grep -v text' works fine.
I did not know about -x so tried it: $ df -x udev It shows (amongst others): udev 16369064 0 16369064 0% /dev I tried and it excludes ext4 & tmpfs. I am running Debian trixie. Am I missing something or should I file a bug report ? Regards -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 https://www.phcomp.co.uk/ Parliament Hill Computers. Registration Information: https://www.phcomp.co.uk/Contact.html #include <std_disclaimer.h>
