1.查找 /tmp 目录下名字为 aming开头的所有文件
[root@localhost tmp]# find /tmp -name 'aming*'
2.搜索tmp目录下所属组group1,所属主user1的文件
[root@localhost tmp]# find /tmp -group group1 -user use1
3.搜索根目录下的 1.txt 2.txt 和 a 目录
[root@localhost tmp]# find / -type f -name "1.txt" -o -name "2.txt" -o -name "a"
/tmp/1.txt
/root/a
/root/1.txt
/usr/share/terminfo/a
4.搜索tmp目录下以 a 开头并且以 c 结尾的文件
[root@localhost tmp]# find /tmp -name "a*c"
5.搜索 tmp 目录下,不是以 a 开头,并且大小超过100M的文件
[root@localhost tmp]# find /tmp -type d -o -name "a*" -size +100M
/tmp
/tmp/.X11-unix
/tmp/.ICE-unix
/tmp/.XIM-unix
/tmp/.font-unix