linux 中查找文件的命令
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
1、find -name “文件名”
注意点:使用find命令查找文件要知道文件的大致路径或者去根目录下查找
创建家目录下的级联目录test/hello
在hello目录下创建zhangsan.txt文件
在test目录下查找zhangsan.txt文件
在用户的根目录下查找zhangsan.txt
在别的目录下找不到zhangsan.txt,除非给它添加一个大致路径,所以使用find命令查找一个文件很不方便
2、locate
locate命令也是用来查找文件的,它是基于数据库的,再查找之前更新一下数据库就可以了,它不受文件路径的影响




A beautiful web dashboard for Linux
最近提交(Master分支:19 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)