今天在复习Linux的时候,发现在shell上面用命令locate 报错了
-bash: locate: command not found
然后也查找了一些资料,最后解决了,记录一下
报错原因:
yum -y install mlocate
安装完之后呢,在使用locate命令,会发现还是会报错的
我们只需要执行命令 updatedb 就可以了
京公网安备 11010502049817号