Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What type of parameter/flag can I use with the unix find command so that I search executables?

(if this question is better suited for another stackexchange forum, I welcome you telling me so)

p.s. If you know of one, I've been looking for a detailed (non-beginner) tutorial/screencast about grep and/or find.

share|improve this question
up vote 5 down vote accepted

Portably, the following command looks for regular files that are executable by their owner:

find . -perm -700 -type f

With GNU find ≥4.3, you can use -executable instead of -perm -700 to look for files that are executable by you.

share|improve this answer

Rather unsurprisingly, -executable. From the man page:

Matches files which are executable and directories which are searchable (in a file name resolution sense). This takes into account access control lists and other permissions artefacts which the -perm test ignores

share|improve this answer

Another option is

find /path -perm /u=x,g=x,o=x -type f

It looks through /path, finds user, global and other executables that are regular files.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.