如何在linux中查找文件


 description

linux中,可以使用find命令快速查找文件

在demo中,我们在home路径下查找名为test.txt的文件

 command

find /home -type f -name "test.txt"

 parameter

-type : 文件类型,f 为普通文件
-name:名称模式

 result

/home/test.txt
/home/dirtest/test.txt
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.