![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
查找文件
不知名某狗粉
这个作者很懒,什么都没留下…
展开
-
find查找文件
创建测试文件接下来创建两个不同目录不同权限同名的文件来测试[root@shell ~ 56]# touch zheng [root@shell ~ 58]# chmod 660 zheng [root@shell ~ 59]# cd /[root@shell / 60]# touch zheng[root@shell / 61]# chmod 600 zheng按照权限并指定文件类型搜索项目Value-perm mode文件的权限正好是mode就匹配-pe原创 2020-08-05 01:00:47 · 1154 阅读 · 0 评论 -
locate查询文件和目录的路径
locate查询目录和文件命令解释locate根据表格(数据库)根据名字查找 文件、目录所在路径updatedb更新locate所用表格先创建一个目录然后用locate查询,发现无显示需要用updatedb刷新一下在查询就有了[root@shell ~ 40]# mkdir zheng[root@shell ~ 41]# locate zheng[root@shell ~ 42]# updatedb[root@shell ~ 43]# locate原创 2020-08-04 20:52:00 · 717 阅读 · 0 评论