相关疑难解决方法(0)

递归查找可执行文件

我有调用的目录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)

并得到了与warl0ckpradeepchhetri提供的相同的结果。

find executable recursive command

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

command ×1

executable ×1

find ×1

recursive ×1