find

来源:互联网 发布:floyd算法的例题讲解 编辑:程序博客网 时间:2024/04/28 09:19

 find filepath -user username -print

example:   find /etc -user root -print

 

find filepath -group groupname -print

 

 

查找5天内的文件

find filepath -mtime -5 -print

查找5天前的文件

find filepath -mtime +5 -print

 

查找比某个文件新或旧的文件

find /home/oo/ -newer test1 -print

find /home/oo/ ! -newer test1 -print

 

查找某type文件

find /etc -type d -print

find /etc -type l -print

 

查找size超过某值的文件   100000c=1M

find /root/Desktop/ -size +100000c -print

 

在进入子目录中查询

find / -name "file.name" -depth -print

 

在mount中查找文件名。

find . -name "*.xc" -mount -print

 

exec

 

 

 

 

 

原创粉丝点击