Linux - 使用 ls 或 find 命令查找所有者可执行的隐藏文件

Linux - finding hidden files that are executable by the owner using ls or find command

好吧,正如 post 标题所说,我需要找到(唯一的)所有者可以使用 lsfind 命令执行的隐藏文件。

我能得到这些.. 查找所有可执行文件的命令

find <dir> -executable -type f

而且,这个是为了找到所有的隐藏文件

find . ".*" -ls

因此,我能够找到隐藏文件和可执行文件,但我无法仅过滤所有者可执行的隐藏文件。

将它们组合起来:

find . -name '.*' -executable -type f

find -type f -executeable -name ".*"

你可以试试这个find,

find . -name '.*' -type f -perm /700

解释:

-perm /700 - 查找所有者可执行的隐藏文件。