I have created `mlocate` database with the contents of a particular folder. I see that the `updatedb` doesn't include the path pointed by the symbolic links in the database.

How can I include the path pointed by the symbolic links in the database?

**Surprisingly**: *mlocate* has a default option `-L` or `--follow` that follows trailing symbolic links when checking file existence (default).

> What purpose does it serves when *updatedb* doesn't include symlinks!

---

References:

- [updatedb(8): update database for mlocate - Linux man page](https://linux.die.net/man/8/updatedb)
- [mlocate - Gentoo Wiki](https://wiki.gentoo.org/wiki/Mlocate)