Member-only story
Can MacOS mdfind replace the find command. A recent experience made me “mdfind” curious
Remediating the eMudhra, the experience, the agony.
Like the rest of the world, I woke up to the fact a certificate authority had something like the number “4” which compromised python pip. It was recommended that we update all the venv in your system. certifi, pip, and some other things needed updates
certifi 2026.10.19 (1)
pip 26.2.2
uv 0.13.4
sigstore 4.5.1
conda 26.9.4
pixi 0.82.1I have never really thought about searching for all venv before now. A quick google search turned up that a signature was the presence of a “pyenv.cfg”. So, I went to a LLM and said this is MacOS and lets create a script to find this pyenv.cfg. I reviewed the script — expecting to find a unix style “find” command, but instead I found something called “mdfind”. Me being a Mac user for only about 1 year now, was like this is new to me. I was like “ok”, lets do as your training suggested, lets do mdfind on the Mac. So, I ran it a few times, and it did not find all the ones I knew about. It did find some. And then I ran a simple find command and thus it showed me all that I knew and them some more that I long since forgotten. So, I marched forward with find methodology which was better for multi-platform anyway, but I made a mental note to return to this mdfind…. I guess you can say I was “mdfind curious”.
On MacOS, the mdfind command is a cli which interacts with spotlight search subsystem. What is special…








