📌  相关文章
📜  定位:无法统计()`var lib mlocate mlocate.db':没有这样的文件或目录 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:42.390000             🧑  作者: Mango

代码示例1
The binary database used by locate (/var/lib/mlocate/mlocate.db) is updated
once daily by cron, so locate will not find new files.

1. You can fix this by first running sudo updatedb
sudo updatedb && locate -e bench-repo

2. It's a good idea to use the -e flag so you only find files that still exist.

3. Oh and here's a bonus tip - you can get locate to give you a detailed listing 
by passing to ls -l

ls -l $(locate -e bench-repo)