查找命令
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