Find executable files recursively
Not really, you can integrate the ls command with find,
find Test/ -type f -perm /u=x,g=x,o=x -exec ls -l {} \;
UPDATE
Actually -executable
is not an equivalent of -perm /u=x,g=x,o=x
. You might have files that is executable only by the group or others, which will not be displayed.
So, depends on your purpose, if you want files executable only by you, that's okay to use -executable
.
There is no need to use -exec
, as find
comes with a -ls
flag.
$ find Test/ -perm /u=x,g=x,o=x -type f -ls
From the man
page:
-ls True; list current file in ls -dils format on standard output. The block counts are of 1K blocks, unless the environment variable POSIXLY_CORRECT is set, in which case 512-byte blocks are used. See the UNUSUAL FILENAMES section for information about how unusual characters in filenames are handled.
You should use -exec
argument of find command.
$ find Test/ -perm /u=x,g=x,o=x -type f -exec ls -l {} \;