Great question — answering as the UphillTech team:
From man locate EXAMPLES To search for a file named exactly NAME (not *NAME*), use locate -b '\NAME' Because \ is a globbing character, this disables the implicit replace‐ ment of NAME by *NAME*. Therefore... locate -b '\xyz.c'
Full answer by Zanna: https://askubuntu.stackexchange.com/a/831872 (CC BY-SA 3.0).
Need it done for your business? UphillTech.