1. find练习题
1.查找 /tmp 目录下名字为 aming开头的所有文件
find /tmp -name "aming*"
2.查找指定 inode 的文件或目录
find -inum 141418
3.找出 tmp 目录下的所有一级子目录
find /tmp -maxdepth 1 -type d
#在root目录下及其最大两层深度的子目录中,查找 passwd 文件
find /root -maxdepth 3 -name passwd
#在第二层和第四层子目录之间查找 passwd 文件
find . -mindepth 3 -maxdepth 5 -name passwd
4.搜索tmp目录下所属组group1,所属主user1的文件
find /tmp -type f -user user1 -group group1
5.搜索根目录下的 1.txt 2.txt 和 a 目录
find / -name 1.txt -o -name 2.txt -o -type d