locate 查找数据库
/var/lib/mlocate/mlocate.db
find /data -iname “bin" 还可以用通配符 忽略大小写
find -name ".sh” -user root -ls 默认并且关系
find (-name “.sh" -o -user root\) -ls 或者,有优先级,所以要用括号括起来
find ! (-name ".sh” -o -user root\) 取反
find / -user joe -o -uid 500
find -not (-user joe -o user jane)
tmp目录下,属主不是root ,且文件名不是以f开头的文件
find /tmp (-not -user root -a -not -name ‘f*’) -ls
find /tmp -not (-user root -o -name ‘f*’) -ls
查找etc/ 下 除/etc/sane.d 目录的其他所有.conf h后缀的文件
find /etc -path ‘/etc/sane.d’ -a -prune -o -name “*.comf”
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




