Features of find
• path: may have multiple paths, eg. find /usr /opt -iname "*.so"
• criteria
• -name, -iname, -type (f,d,l), -inum <n>
• -user <uname>, -group <gname>, -perm (ugo)
• -size +x[c], -empty, -newer <fname>
• -atime +x, -amin +x, -mmin -x, -mtime -x
• criteria may be combined with logical and (-a) and or (-o)
• action
• -print -- default action, display
• -exec cmd -- execute command cmd
• -ls -- run ls -lids command on each resulting file
• -ok cmd like exec except that command executed after user confirmation
35