????-user USERNAME??????????????
????-group USERNAME?????????????
?????????
????# find /var -user root -o -group mail
????-uid UID:???????UID????
????-gid GID?????????GID????
?????????
????# find /tmp -uid 3323 -ls
????2346806    0 -rw-rw-r--   1 mageedu  mageedu         0 Mar 10 09:36 /tmp/mageedu
????2346812    0 -rw-rw-r--   1 mageedu  mageedu         0 Mar 10 09:36 /tmp/testfile
????-nouser:????????????????
????-nogroup???????????????????
????-nouser??-nogroup????????????????????????????????????????????????????????????????UID???????????????????飬?????uid????????????????????????????????????????????
?????????
????# find /tmp -nouser -nogroup -ls
????2346806    0 -rw-rw-r--   1 3323     3323            0 Mar 10 09:36 /tmp/mageedu
????2346812    0 -rw-rw-r--   1 3323     3323            0 Mar 10 09:36 /tmp/testfile
????b????????????
????-type TYPE: ??????????????
????f: ??????
????d: ?????
????l: ???????????
????b: ???豸
????c: ????豸???
????p: ????????????
????s: ???????
?????????
????# find /tmp -type d -ls
????c???????С
????-size [+|-]#UNIT??
?????????λ?У?k?? M?? G
????#UNIT: #-1
????2k?1k-2k
????-#UNIT??x
????-2k???0k-1k
????+#UNIT: x > #
????+2k???2k????????
?????????
????Shell
????# find /etc/ -type f -size +1
????d??????????
??????“??”???λ
????-atime [+|-]#
????-mtime [+|-]#
????-ctime [+|-]#
????#: ???磺?3??10???3??3??7???3??8??????????24С????
????-#: ???磺?3??10???-3???????????3??7??????????????????
????+#: ???磺?3??10???+3????????????3??7???
??????“????”???λ
????-amin [+|-]#
????-mmin
????-cmin
?????????
????# find /etc -not -user root -not -user hadoop -mtime -7
????# find / -nouser -nogroup -atime -3
????e????????
???????????????
????-perm [+|-]MODE
????MODE: ??MODE??????
????+MODE???κ?????????????????????????????κ??λ???????
????-MODE????????????????????????????????????
????#????????????????磺-444 ????????????顢????????????????????????
?????????
????# find /etc/init.d/ -perm -113  #???????????????????????????????д???????????
????# find /etc/ -type f -not -perm +222 #????????????????д???
??????2????????????
????????????????
??????-a?? ????????1 -a ????????2 -a …
??????????????????????
??????-o?? ????????1 -o ????????2 -o …
???????????????????????
???????-not?? !
????-not ????????
?????????
????# find / ( -nouser -o -nogroup ) -a -atime -3
????# find /etc/ -not ( -user root -o -user hadoop ) -a -mtime -7
????3?????????
????-print: ??????????????????
????-ls: ?????????????????????
????-exec COMMAND {} ;
????-ok COMMAND {} ;
????#exec??ok??????ok?????????????????????exec???????
?????????
????# find /tmp -iname "*yum*" -type f -ls
????134    0 -rw-r--r--   1 root     root            0 Mar 10 09:32 /tmp/yum.log
????137    0 -rw-r--r--   1 root     root            0 Mar 10 09:32 /tmp/YUM.LOG
????# find /tmp -iname "*yum*" -type f -exec ls -l {} ;
????-rw-r--r-- 1 root root 0 Mar 10 09:32 /tmp/yum.log
????-rw-r--r-- 1 root root 0 Mar 10 09:32 /tmp/YUM.LOG
????# find /tmp -iname "*yum*" -type f -exec echo {} >>/tmp/test.file ;
????# find /tmp -iname "*yum*" -type f -ok echo {} >>/tmp/test.file ;
????? y
????? y