One-liners: Difference between revisions

add a find example
 
Line 99: Line 99:
</syntaxhighlight>
</syntaxhighlight>


== Find with exclusions ==
Trying to fix [[permissions]], I wanted to see if there were any executable files in the 'data' directory. It turned out that every file in the elasticsearch and uploads directories were +x somehow. So, I wanted to exclude those dirs and see if there was anything else.
<syntaxhighlight lang="bash">
sudo find /opt/data-meza/ \( -name uploads -o -name elasticsearch \) -prune -o -type f -perm -ugo=x -ls
</syntaxhighlight>
{{References}}
{{References}}