There are time we would like to find the files that is ‘readable’ or ‘executable’. So this command will help in such situation.
Below command is based on the current user.
For example, ‘readable’ is according to your current user.
If you login with root or other user this will be different.
Sample scenario is when to find any file that is at least executable by someone.$ find . -perm /u=x,g=x,o=x
-
= AND/
= ORUnfortunately, to find non-executable file is not very straightforward.
The symbolic -
minus sign is NOT working
To invert the result you needs !
or -not
flag prefix the -perm
To expand the result:
There we go.
Hope this helps!