Search for executable files using find command

前端 未结 10 878
既然无缘
既然无缘 2020-12-07 11:21

What type of parameter/flag can I use with the Unix find command so that I search executables?

10条回答
  •  北荒
    北荒 (楼主)
    2020-12-07 12:18

    It is SO ridiculous that this is not super-easy... let alone next to impossible. Hands up, I defer to Apple/Spotlight...

    mdfind 'kMDItemContentType=public.unix-executable'

    At least it works!

提交回复
热议问题