find 下参数的关系默认是and 一个参数多个选项可以用 -or

[root@ob2 mytmp]# find -type f -name "*.html" -or -name "*.txt"
./02.html
./aa.html
./03.html
./01.html
./aa2.txt
[root@ob2 mytmp]# find -type f -name "*.html" -and -name "*.txt"

原文地址:https://www.cnblogs.com/gaoyuechen/p/7521546.html