Today, we’ll show how to find files marked as executable (chmod +x) in a given directory of a linux system.
Basic syntax
find {directory} -type f -executable
Common Examples
Find all executables in current directory recursively:
find . -type f -executable
Find all executables in current directory while skipping subdirectories:
find . -maxdepth 1 -type f -executable
Find all executables on the system (recursively):
find / -type f -executable