在线小工具

在线小工具

Linux怎么查找文件

来源:互联网 百科知识 0

linux怎么查找某个文件?我们一起来了解一下吧。

1、Find 命令

使用 Linux find 命令可以用不同的搜索标准如名字、类型、所属人、大小等来搜索目录树。基本语法如下:

# find path expression search-term

2、locate 命令 ,使用前需要安装locate。

使用 locate 查找文件的语法:

# locate test.file

就像 find 命令一样,locate 也有很多选项来过滤输出。

本文章基于Thinkpad E15品牌、centos7系统撰写的。

linux查找文件

抱歉,评论功能暂时关闭!