=========================================
=============
find -name april* 在当前目录下查找以 april 开始的
文件
find -name april* fprint file 在当前目录下查找以 april 开
始的文件,并把结果输出到
file 中
find -name ap* -o -name may* 查找以 ap 或 may 开头的文件
find /mnt -name tom.txt -ftype vfat 在/mnt 下查找名称为
tom.txt 且文件系统类型
为
vfat 的文件
find /mnt -name t.txt ! -ftype vfat 在/mnt 下查找名称为
tom.txt 且文件系统类型
不为
vfat 的文件
find /tmp -name wa* -type l 在/tmp 下查找名为 wa 开头
且类型为符号链接的文件
find /home -mtime -2 在/home 下查最近两天内改动
过的文件
find /home -atime -1 查 1 天之内被存取过的文件
find /home -mmin +60 在/home 下查 60 分钟前改动
过的文件
find /home -amin +30 查最近 30 分钟前被存取过的
文件
find /home -newer tmp.txt 在/home 下查更新时间比
tmp.txt 近的文件或目录
find /home -anewer tmp.txt 在/home 下查存取时间比
tmp.txt 近的文件或目录
find /home -used -2 列出文件或目录被改动过之后,
在
2 日内被存取过的文件或目录
find /home -user cnscn 列出/home 目录内属于用户
cnscn 的文件或目录
find /home -uid +501 列出/home 目录内用户的识
别码大于
501 的文件或目录
find /home -group cnscn 列出/home 内组为 cnscn 的
文件或目录
find /home -gid 501 列出/home 内组 id 为 501 的文
件或目录
find /home -nouser 列出/home 内不属于本地用户
的文件或目录
find /home -nogroup 列出/home 内不属于本地组的
文件或目录
find /home -name tmp.txt -maxdepth 4 列出/home 内的
tmp.txt 查时深度最多为 3 层
find /home -name tmp.txt -mindepth 3 从第 2 层开始查
find /home -empty 查找大小为 0 的文件或空目录
find /home -size +512k 查大于 512k 的文件