如何在linux中查找文件
Linux16
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
在linux中,可以使用find命令快速查找文件
在demo中,我们在home路径下查找名为test.txt的文件
find /home -type f -name "test.txt"
-type : 文件类型,f 为普通文件 -name:名称模式
/home/test.txt /home/dirtest/test.txt
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.