列出 Linux 中组可写的文件和目录
递归列出给定目录及其子目录中的文件(可由拥有它们的组写入)的最简单方法是什么?我使用的是 Debian 5。
What's the easiest way to recursively list files in a given directory and its subdirectories, that are writable by the group which owns them? I'm using Debian 5.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
类似 Or 的东西
,用于像 ls -l 这样的输出
Something like
Or, for output like ls -l
find /dir/ -perm /0020
也是一个很好的解决方案。检查手册页以查找。我的 Debian 版本(find (GNU findutils) 4.4.0)中 Sorpigal 认为已弃用。find /dir/ -perm /0020
is also a good solution. Check the man page for find. My version in Debian (find (GNU findutils) 4.4.0) has the argument by Sorpigal as deprecated.