📅  最后修改于: 2022-03-11 14:59:42.390000             🧑  作者: Mango
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)