Search entire system
To search for anything whose name contains example_name in macOS.
- Do you need to search the entire system?
Using sudo allows find to enter protected directories, and 2>/dev/null
hides permission denied messages.
- If you are looking specifically for directories or files, use a filter:
- Files only:
... -type f -
Folders only:
... -type d -
To view the result in Finder:
This will open the first result directly in Finder.