• 根据预设的条件递归查找对应的文件
– find [目录] [条件1] [-a|-o] [条件2] …
– 常用条件表示:
-type 类型(f、d、l)
-name “文档名称”
-size +|-文件大小(k、M、G)
-user 用户名
-mtime 根据文件修改时间
################################################
-type 类型(f文件、d目录、l快捷方式)
-name '文档名称'
[root@server0 ~]# find /boot/ -type d
[root@server0 ~]# find /boot/ -type f
[root@server0 ~]# find /boot/ -type l
[root@server0 ~]# ls /boot/grub/menu.lst
[root@server0 ~]# ls -l /boot/grub/menu.lst
[root@server0 ~]# find /etc/ -name ‘passwd’
[root@server0 ~]# find /etc/ -name ‘tab’
[root@server0 ~]# find /etc/ -name ‘tab’
[root@server0 ~]# find /etc/ -name '.conf’
[root@server0 ~]# mkdir /root/nsd01
[root@server0 ~]# mkdir /root/nsd02
[root@server0 ~]# touch /root/nsd03.txt
[root@server0 ~]# find /root/ -name ‘nsd*’