linux find查找文件/目录

linux find查找文件/目录

查找当前目录下某个文件

find . –name  [filename]

linux find查找文件/目录

-i  不区分大小写

find . –iname [filename]

linux find查找文件/目录

-type 按类型进行查找,d查找目录,f查找文件

find . –type d –name [document]

find . type f –name [filename]

linux find查找文件/目录

-user 按所有者查找文件/目录

find . –user  [username]

find . –user root

linux find查找文件/目录

-group 按用户组查找文件/目录

find . –group  [groupname]

find . –group root

linux find查找文件/目录

其他的查询

find . –type f –mtime 1   查找1天前修改的文件

find . –type f –cmin -60 查找1小时内更改过的文件

find . –type  f –size +50MB –size -100MB 查找50MB到100MB的所有文件

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注