当前位置:主页 > 服务器 > Linux >

Ubuntu16.04 中 locate文件查找命令

时间:2021-09-07 09:11:32 | 栏目:Linux | 点击:

查找命令

locate 文件名

示例

~$ locate glog
/home/yqs/.cmake/packages/glog
/home/yqs/.cmake/packages/glog/489b861d87ea25795bc18d8964376f65
/home/yqs/.cmake/packages/glog/7d736a498d56259876d4416da6706b9e
/home/yqs/Desktop/glog
/home/yqs/Desktop/test_glog
/home/yqs/Desktop/test_glog_gflags

注意事项

当删除或添加文件后,需要更新locate,命令如下:

sudo updatedb

总结

您可能感兴趣的文章:

相关文章