Monday, November 25, 2024

launchd – Allow the `find` command on a Mac

Following the output of the find command, to allow the find command on a Mac, I did:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.find.plist

however it returns instantly, as an alternative of “take a while“, and ls -l /var/db/find.database offers No such file or listing.

much less /System/Library/LaunchDaemons/com.apple.find.plist reveals:

        <key>Label</key>
        <string>com.apple.find</string>
        <key>Disabled</key>
        <true/>

So it’s disabled? The way to allow if that’s the case? I attempted

sudo launchctl allow system/com.apple.find.plist, however I nonetheless see it’s disabled afterwards:

$ head /System/Library/LaunchDaemons/com.apple.find.plist
<?xml model="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Pc//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist model="1.0">
<dict>
    <key>Label</key>
    <string>com.apple.find</string>
    <key>Disabled</key>
    <true/>
    <key>ProgramArguments</key>
    <array>

Furthermore, my sudo /usr/libexec/find.updatedb command has been working for hours, however up to now I am nonetheless getting:

ls: /var/db/find.database: No such file or listing

PS. my macOS model:

$ sw_vers
ProductName:        macOS
ProductVersion:     14.2.1
BuildVersion:       23C71

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles