我有调用的目录Test和其中的几个目录。两者Test和其中的目录都有可执行文件。我想用ls. 我会使用这个命令。
ls -l `find Test/ -perm /u=x,g=x,o=x -type f`
Run Code Online (Sandbox Code Playgroud)
这是一个好的/正确的/快速的命令吗?
我的解决办法是:
find Test/ -executable -type f -exec ls -l {} \;
Run Code Online (Sandbox Code Playgroud)
并得到了与warl0ck和pradeepchhetri提供的相同的结果。