Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recursively check for files with executable bit set

Using the command line how can I get a listing of all files in the current directory and all sub directories that have the executable ( +x ) bit set?

like image 272
Zameer Manji Avatar asked Dec 28 '22 12:12

Zameer Manji


2 Answers

Find is your friend:

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

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

like image 173
Patrick B. Avatar answered Jan 18 '23 20:01

Patrick B.


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

I didn't check, though, so beware!

like image 33
alf Avatar answered Jan 18 '23 20:01

alf