安装locate

简介:

安装locate安装包

 

 
 

我在linux下,不是很熟悉使用find的命令,所以比较习惯用locate命令。

不过这次iredos由于精简的原因,没有安装locate包,

我尝试yum install locate,结果没有这个包。

yum list | grep locate

yum install mlocate

updatedb

这个时候,你就可以使用locate来查找文件。




本文转自 kuangling 51CTO博客,原文链接:http://blog.51cto.com/kling/1159827

相关文章
|
5月前
|
Linux Shell 数据库
linux(十九)查找文件的四个命令whereis、which、find、locate~
linux(十九)查找文件的四个命令whereis、which、find、locate~
47 0
|
5月前
|
Linux 数据库
Linux命令(28)之locate
Linux命令(28)之locate
36 2
|
9月前
|
Linux Shell 数据库
如何在 Linux 上使用 `find` 和 `locate` 进行文件搜索?
如何在 Linux 上使用 `find` 和 `locate` 进行文件搜索?
78 0
如何在 Linux 上使用 `find` 和 `locate` 进行文件搜索?
|
安全 Linux Shell
linux命令_which&&whereis&&locate以及区别
linux命令_which&&whereis&&locate以及区别
165 0
|
Linux Shell PHP
Linux 搜索命令总结 - whereis,which,locate,find,grep
一、命令搜索命令 whereis 与 which 1. whereis 命令 搜索命令所在路径及帮助文档所在位置 选项 -b: 只查找可执行文件 -m: 之查找帮助文件 2. which 命令 搜索命令所在位置及别名
|
Shell Linux
which、type、whereis、locate几个命令的区别与联系
对于Linux系统来说,我们经常面对的是字符界面环境。很多时候,我们无法很直观地搜索、查找到我们需要的文件。
1337 0
|
数据库 Shell Linux