Bsd find: Difference between revisions
From wikinotes
(Created page with "Search files and directories. This page is essentially a cookbook. Also see gnu find.") |
No edit summary |
||
Line 3: | Line 3: | ||
Also see [[gnu find]]. | Also see [[gnu find]]. | ||
= Recipes = | |||
<blockquote> | |||
== Files by Bitmask == | |||
<blockquote> | |||
<syntaxhighlight lang="bash"> | |||
# files with the executable bit set for user AND group AND other | |||
find -type f -perm -111 | |||
# files with the executable bit set for user OR group OR other | |||
# ('/111' on gnu-find) | |||
find -type f -perm +111 | |||
</syntaxhighlight> | |||
</blockquote><!-- Files by Bitmask --> | |||
</blockquote><!-- Recipes --> |
Latest revision as of 22:42, 20 August 2021
Search files and directories. This page is essentially a cookbook.
Also see gnu find.
Recipes
Files by Bitmask
# files with the executable bit set for user AND group AND other find -type f -perm -111 # files with the executable bit set for user OR group OR other # ('/111' on gnu-find) find -type f -perm +111