How to find executable files

Looking for executable files under users home folders

find /home -maxdepth 2 -type f -executable -exec file -i '{}' \; | grep 'x-executable; charset=binary'

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *