Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

16
  • 26
    a shebang doesn’t mean they’re executable. it tells us only which interpreter to use. and by linux definition “executable files” are files with the executable (x) bit set
    – knittl
    Commented Sep 10, 2009 at 12:09
  • 3
    What version of find supports that type for -type? man find lists b, c, d, p, f, l, s and D on my system.
    – innaM
    Commented Sep 10, 2009 at 15:51
  • 7
    If you have an old version of find (probably before 4.3.8) which lacks -executable use find . -perm /u=x,g=x,o=x. Commented May 14, 2010 at 19:06
  • 6
    -executable isn't at all portable and should be avoided Commented Oct 26, 2012 at 15:54
  • 14
    find: invalid predicate -executable' on RHEL
    – SSH This
    Commented May 17, 2013 at 20:57