使用 `find -perm` 查找未设置权限的时间 [英] Using `find -perm` to find when a permission is not set

查看:12
本文介绍了使用 `find -perm` 查找未设置权限的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的目录中找到不可读的文件(例如带有 g-r 的文件).所以我尝试了这个:

I want to find the non-readable files in my directory (eg the files with g-r). So I tried this:

找到 .-perm -g-r

它显示了我所有的文件??所以我尝试了这个:

It shows me all of the files?? So I tried this:

找到 .-perm -g+r

它只向我显示了可读文件.看来 -perm -g-r 匹配所有文件.我正在使用 CentOS 5.5.难道我做错了什么?它看起来不像 -perm -g-r 做任何有用的事情.

And it showed me only the readable files. It appears that -perm -g-r matches all files. I'm using CentOS 5.5. Am I doing something wrong? It doesn't look like -perm -g-r does anything useful.

推荐答案

试试:

找到 .!-perm -g+r

这篇关于使用 `find -perm` 查找未设置权限的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆