- find / -name test.* 找到名称为test的所有文件
- Find / -iname test 找到名称为test的所有文件,并在/ home目录中同时包含大写和小写字母。
- Find -type f -name test.php 在/目录中查找名称为test的所有目录
- 4-find -type f -perm 0777 -print 查找权限为777的所有文件
5-find -type d -name test.php在/目录中查找名称为test的所有目录
6-find -type f ! -perm 0777 -print查找所有文件未经许可777。
7--find -perm /u=s 查找所有SUID集文件
8-find -perm /u=r查找所有只读文件
9-find -perm /u=x查找所有可执行文件
10-find -type f -perm 0777 -print exec chmod 644{}\;查找所有777个权限文件,并使用chmod命令将权限设置为644
11-Find -type f -name test.php -exec rm -f{}\;到一个名为test.c的文件并将其删除
12- Find / -type f -name -empty 查找空文档
13- Find / -type d -name -empty 查找目录
14-Find / -user root -name test查找用户root的所有文件
15-Find / -grouproot -name test查找组root的所有文件
16-Find / -atime 50查找50天访问
17-find / -mtime +50 -mtime -100 查找所有被修改超过50天以及少于100天的文件
18-find / -ctime -60查找最近1小时内更改的所有文件
19-find / -atime -60 查找最近1小时内访问的文件
20-find / -size +50M -size -100M找到大于50MB且小于100MB的所有文件