当前位置:科普知识站>IT科技>

linux查找文件方法|find

IT科技 阅读(2.51W)
品牌型号:联想小新Pro13/系统版本:windows10

find 命令的基本信息如下:

命令名称:find。

英文原意:search for files in a directory hierarchy.

所在路径:/bin/find。

执行权限:所有用户。

功能描述:在目录中查找文件。

命令格式

[root@localhost ~]# find 搜索路径 [选项] 搜索内容

按照文件名搜索

[root@localhost ~]#find 搜索路径 [选项] 搜索内容

按照文件大小搜索

[root@localhost ~]#find 搜索路径 [选项] 搜索内容

按照修改时间搜索

[root@localhost ~]# find搜索路径 [选项] 搜索内容

按照权限搜索

[root@localhost ~]# find 搜索路径 [选项] 搜索内容

按照所有者和所属组搜索

[root@localhost ~]# find 搜索路径 [选项] 搜索内容

按照文件类型搜索

[root@localhost ~]# find 搜索路径 [选项] 搜索内容

linux查找文件方法-find