As all we know, we can search a file or directory in the linux by:
find / -name theName
But there shows all the files and directories and permission denied, like this bellow:
...
find: /Library/Caches/com.apple.iconservices.store: Permission denied
/Library/Python/2.7/site-packages/Django-1.11.2-py2.7.egg/django
/Library/Python/2.7/site-packages/Django-1.11.2-py2.7.egg/django/forms/jinja2/django
/Library/Python/2.7/site-packages/Django-1.11.2-py2.7.egg/django/forms/templates/django
find: /Library/SystemMigration/History/Migration-389D835B-414A-4D8D-A683-7407624E87E8/QuarantineRoot/System/Library/DirectoryServices/DefaultLocalDB/Default: Permission denied
find: /private/etc/cups/certs: Permission denied
find: /private/var/agentx: Permission denied
...
If I just want to shows the directories find by the command, how to do with it?
Permission denied
? – Arkadiusz Drabczyk Sep 10 '17 at 14:06/**/theName/
instead of runningfind
at all. – chepner Sep 10 '17 at 14:33