您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页find命令常用场景

find命令常用场景

来源:化拓教育网

 find /var -user root -group mail 

find /usr -not -user root -a -not -user bin -a -not -user student
find /usr -not \( -user root -o -user bin -o -user student \)

 

find /etc -mtime -7 -a -not \( -user root -o -user student \) -exec stat {} \;

 


4、查找当前系统上没有属主或属组且最近1天内曾被访问过的文件,并将其属主属组均修改为root;

find / \(-nouser -o -nogroup \) -a -atime -1 -exec chown root.root {} \;

 

find /etc -size +1M -exec echo {} >> /tmp/etc.largefiles \;

 

find /etc -not -perm /222 -ls

 

转载于:https://www.cnblogs.com/ElegantSmile/p/11360346.html

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务