Checking for executable files can be done with -perm
(not recommended) or -executable
(recommended, as it takes ACL into account). To use the -executable
option:
find <dir>DIR -executable
ifIf you want to find only executable files and not searchable directories, combine with -type f
:
find <dir>DIR -executable -type f