Recursively check files with set bit set

Using the command line, how can I get a list of all files in the current directory and all subdirectories in which the executable bit ( +x ) is set?

+4
source share
2 answers

Find your friend:

 find <path> -perm -g=x -type f 

to find all files (-type f) with x-bit set for the group in the "path".

+6
source

Try the cool find wizard : it says: find . -perm u+x,g+x,o+x -print find . -perm u+x,g+x,o+x -print

I did not check, so be careful!

+2
source

All Articles