查找具有(或没有)特定所有者的文件

hil*_*gjr 2 linux bash

如何在搜索中查找特定目录(和子文件夹 - 递归)中具有特定所有者名称或没有指定所有者名称的文件?

小智 5

您可以使用查找命令。

find (directory) -user (user)
find (directory) -not -user (user)
Run Code Online (Sandbox Code Playgroud)

https://www.cyberciti.biz/faq/how-do-i-find-all-the-files-owned-by-a-pspecial-user-or-group/